The viewstack dispatches a 'change' event when the selectedChild changes. Use this event to do whatever you want in that particular child (check if the selectedChild == this in the child component).
--- In [email protected], Mark Shen <[EMAIL PROTECTED]> wrote: > > But createPolicy is empty now but all the createComplate called at beginning? > > I need it called when it selected.How to fix this? > > Mark > > > ----- Original Message ---- > From: rueter007 <[EMAIL PROTECTED]> > To: [email protected] > Sent: Friday, December 21, 2007 2:04:47 PM > Subject: [flexcoders] Re: creationComplete question? > > is the creationPolicy set to 'all' on the viewstack? make sure it is > 'auto'('auto' is the default if nothing is specified). This will > create the components the first time they are selected rather than at > the beginning. > > - venkat > http://www.venkatj. com > > --- In [EMAIL PROTECTED] ups.com, "markflex2007" <markflex2007@ ...> > wrote: > > > > Hi > > > > I have some screens under ViewStack like this > > > > <mx:ViewStack> > > <view:Form1View /> > > <view:Form2View /> > > <view:Form3View /> > > <view:ThankyouView /> > > </mx:ViewStack> > > > > I have set creationComplete event to call a function for Form2View, > > but the event is actived when I call the app first time(it show > > Form1View at first). > > > > I hope the creationComplete event work when I reach Form2View, > > Please help me to know how to control this. > > > > Thanks > > > > Mark > > > > > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ >

