<mx:ViewStack id="myViewStack" selectedIndex="1">

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of al-al :D
Sent: Monday, June 08, 2009 11:30 PM
To: [email protected]
Subject: [flexcoders] A question about ViewStack

 






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



Reply via email to