<mx:ViewStack id="myViewStack" height="100%">
<cmp:FirstView id="firstView" />
<cmp:SecondView id="secondView" />
<cmp:ThirdView id="thirdView" />
</mx:ViewStack>
I've been reading about the ViewStack component and found that children
(except the first one) are only created when the user explicitly makes
an action that causes the selected child to change as:
function myButton.click() { myViewStack.selectedChild = thirdView; }
What I'm realising is that children are ALL created, in a sequential
fashion, but CREATED in fact. Why is this happening? Should I set a
creationPolicy property to "none" and then instantiate the views
manually? If so, which is the best way to do it? createComponent()?
createChild()? createClassObject()?
Please, help me... :-S
Thanks!
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

