<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
xmlns:ns1="*">
<mx:ViewStack x="10" y="10" id="viewstack1" width="100%" height="100%">
<ns1:FirstView id="two"/>
<ns1:SecondView id="one"/>
</mx:ViewStack>
</mx:Application>
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%"
height="100%">
<mx:Button x="167" y="186" label="GoToFirst" click="go();"/>
<mx:Script>
<![CDATA[
public function go():void
{
// viewstack1.selectedChild = second;
// this.parentApplication.viewstack1.selectedChild =
this.parentApplication.second;
}
]]>
</mx:Script>
</mx:Canvas>
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%"
height="100%">
<mx:Button x="167" y="186" label="GotoSecond"/>
</mx:Canvas>
Is there any simple solution ( other than firing custom event )? Sorry for
reposting, but this may be more clear than earlier one.
--
Regards,
Yogesh