I have a simple enough question, I think. But I've been struggling
with it for two days.
I have an mxml application which has a viewstack in it. The children
in the viewstack are <fr: tags for other mxml files
It looks like this:
<mx:ViewStack id="mainScreens">
<fr:interfacePanel id="interfacePanel" />
<fr:otherPanel id="otherPanel" />
</mx:ViewStack>
In the mxml file called interfacePanel I have another viewstack with
interface screens on them.
How can I select different children of that viewstack from the main
mxml app.
I would think I'd do something like this:
<mx:button
click="mainScreens.interfacePanel.secondViewstack.selectedChild =
Page2;" />
But that doesn't work.
Does anyone know the method of addressing object across multiple
nested mxml files?
Thanks! Hopefully someone can show me what I'm missing.