Is it possible to choose which stack to display first in a ViewStack?
for example
<mx:ViewStack id="myViewStack">
<mx:Canvas id="firstCanvas">
<mx:DataGrid />
</mx:Canvas>
<mx:Canvas id="secondCanvas">
<mx:Form />
</mx:Canvas>
</mx:ViewStack>
is it possible to choose secondCanvas to display first during creationComplete
event? I have tried myViewStack.selectedIndex = 1 or even
myViewStack.selectedChild = secondCanvas, but what happens is that the
firstCanvas displays first, then it just goes to secondCanvas. I would like to
skip the displaying of the firstCanvas
Thanks in advance! :D