Hi all, a quick question
about view stack instantiation: If I have a view stack,
creation policy auto, with two children: <mx:ViewStack
creationPolicy=”auto”> <components:ChildOne
/> <components:ChildTwo /> </mx:ViewStack> ChildOne.mxml: <mx:HBox creationComplete=”trace(‘child one created’)”> <!--
stuff in here --> </mx:HBox> ChildTwo.mxml: <mx:HBox creationComplete=”trace(‘child two created’)”> <!--
stuff in here --> </mx:HBox> In what order are the creationComplete events fired for the
children? I seem to be witnessing behaviour where the creation complete events
are being fired immediately, when the view stack is instantiated, but the
actual components within the children are not being instantiated until the selected
index of the view is changed (as you would expect from creationPolicy=”all”).
Does this sound reasonable? Has anyone experienced this kind of behaviour? I
was under the impression that the creationComplete event for the top-level components
themselves would not fire until the view stack index changed. (Apologies for the lack of
a complete code sample (spread across several files I’m afraid), but
hopefully what I’ve said is enough to explain the problem) Cheers, Mike. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com ---- LSpots keywords ?> ---- HM ADS ?> YAHOO! GROUPS LINKS
------------------------------------------------------------------ This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus. |
- [flexcoders] Creation events and view stack children Michael Herron
- Re: [flexcoders] Creation events and view stack child... JesterXL
- RE: [flexcoders] Creation events and view stack child... Alistair McLeod
- RE: [flexcoders] Creation events and view stack child... Michael Herron
- RE: [flexcoders] Creation events and view stack c... Alistair McLeod
- Re: [flexcoders] Creation events and view stack c... JesterXL
- RE: [flexcoders] Creation events and view stack child... Michael Herron