On Apr 6, 2005 2:14 AM, Valy Sivec <[EMAIL PROTECTED]> wrote:
> I have a viewStack container and I want to prepopulate one view before
> displaying it. How can I do that?
Quick answer: In the initialization phase (initialize handler),
switch the selectedIndex to the index of that view which you want
loaded, and then switch back in creationComplete. Yeah... I guess.
Try it out.
Okay, on second thoughts, that sounds lame. Why not add the views
dynamically using createChild(). So add two views in your MXML and
have creationPolicy="all". Then add more views as you need 'em.
Manish
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/