Comunidad de diseño web y desarrollo en internet online

Acceder a un CB de un Application desde otro componente

Citar            
MensajeEscrito el 10 Mar 2008 09:54 pm
Estoy armando una app con una estructura como esta:
Aplicación Principal:

Código :

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:Canvas="Canvas.*">
   <mx:ToggleButtonBar x="10" y="10" dataProvider="{admin_vs}"/>
   <mx:ViewStack id="admin_vs" top="48" bottom="10" left="10" right="10">
      <mx:Canvas id="contents_c_vs" width="100%" height="100%"
         label="{Lang.getInstance().language.elements('main').elements(idioma_cb.selectedItem.id).elements('contenidos')}" >
         <Canvas:Contents id="contents_c" width="100%" height="100%"/>
      </mx:Canvas>
   </mx:ViewStack>
   <mx:ComboBox id="idioma_cb" y="14" width="200" right="10" labelField="nombre" 
      dataProvider="{Lang.getInstance().language.elements('idiomas').elements('idioma')}"/>
</mx:Application>


Contents.mxml

Código :

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="640" height="480" 
   backgroundAlpha="1.0" backgroundColor="#FFFFFF" xmlns:Canvas="Canvas.*">
   <mx:Panel id="secciones_p" x="10" width="250" layout="absolute" bottom="10" top="10" >
      <mx:Tree x="10" width="210" id="secciones_tree" top="10" bottom="10"></mx:Tree>
   </mx:Panel>
   
</mx:Canvas>


como podría acceder desde Contents al combo idioma_cb de la app principal?

Por master_of_puppetz

Claber

2483 de clabLevel

7 tutoriales
3 articulos

Genero:Masculino   Premio_Secretos

WebDev (Flex + PHP + JS)

firefox
Citar            
MensajeEscrito el 10 Mar 2008 11:08 pm
Así:

Código :

Application.application.idioma_cb


Saludos

Por Dano

BOFH

4273 de clabLevel

14 tutoriales
4 articulos
10 ejemplos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Lugar estratégico para vigilarte

firefox

 

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