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?
