Comunidad de diseño web y desarrollo en internet online

Como pasar parametros de una ventana principal a un PopUp en Adobe Fle

Citar            
MensajeEscrito el 01 Abr 2011 03:23 pm
bueno la duda es esa de como puedo pasar parametro cualesquira sean desde una aplicacion principal como envio parametro a un nuevo componente PopUp

para ser mas claro envio condigo
APLICACION PRINCIPAL

Código Flex :

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">


   <mx:Button x="261" y="227" label="Enviar Parametro" click="iniciarNueva()"/>
   <mx:TextInput x="192" y="197" width="247" id="ti_valor"/>
   
   <mx:Script>
      <![CDATA[
         import mx.controls.Alert;
         import mx.managers.PopUpManager;
         
            
         public function iniciarNueva():void
         {
                  cargarComponente()
         }
         
         import componentes.Segunda_Ventana
         public function cargarComponente():void
         {
            var myComponenteUP:Segunda_Ventana
            myComponenteUP = new Segunda_Ventana();
            PopUpManager.addPopUp(myComponenteUP,this,true);
            PopUpManager.centerPopUp(myComponenteUP);
         }
         
               
      ]]>
   </mx:Script>
</mx:Application>


COMPONENTE

Código Flex :

<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300" title="Segunda Ventana"
   showCloseButton="true" close="PopUpManager.removePopUp(this)" creationComplete="PopUpManager.centerPopUp(this)" 
   >
   
   <mx:Script>
      <![CDATA[
         import mx.managers.PopUpManager;
         private var popManager:PopUpManager = new PopUpManager();
         
         
      ]]>
   </mx:Script>
   
   <mx:TextInput x="139" y="32" id="valor"/>
   <mx:Text x="10" y="34" text="El valor extraido es:"/>
   <mx:Button x="157" y="202" label="enviar"/>
   
</mx:TitleWindow>


***************************************************************************
ahora la idea es como envio un valor desde un (<mx:TextInput x="192" y="197" width="247" id="ti_valor"/>)

a un PopUP
y que tambien contiene un TextInput

PORFAVOR ALGUIEN ME AYUDE EN ESTE PROBLEMITA QUE TENGO SALU2S.

Por djdonovans

1 de clabLevel



 

firefox
Citar            
MensajeEscrito el 01 Abr 2011 07:45 pm
Usa el componente que instancias, Segunda_Ventana, y usa métodos públicos para pasarle valores

Segunda_Ventana.setLoquesea(mivalor)

El componente está en el pop-up y allí se mostrará

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 01 Abr 2011 07:57 pm
mil gracias por el consejo lo probare y luego comento como me fue ;D

SALU2s

Por djdonovans

1 de clabLevel



 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.