Aye, i RTFM ;) heheh ".. but wait to create the deeper descendants of a child until it becomes the selected child of the navigator container..."
See that part is what threw me, it sounded is if you left the creationPolicy soley up to the ViewStack, then yes it proceeds according to design. Yet, if you put in creationPolicy="all" on the *actual* child02, its ignored in favour of what the actual viewstack's policy states... in that you can't over-ride it for children within the viewstack? As to what then purpose you would have creationComplete="" on a child of a viewstack is beyond me? Smells fishy to me ;) hehe On 8/26/05, Abdul Qabiz <[EMAIL PROTECTED]> wrote: > > > Scott- > > > So in saying this, does this mean that ViewStack creates the base > > containers for all of its children, but all sub-containers there > > within, aren't created until that child recieves index selection, > > meaning "if child 2 is clicked, now create its actual internals" > > Right, following is from docs: > > A creationPolicy of "auto" means that the container is to delay creating > some or all descendants until they are needed, a process which is known as > deferred instantiation. This policy produces the best startup time because > fewer UIObjects are created initially. However, this introduces navigation > delays when a user navigates to other parts of the application for the first > time. Navigator containers such as Accordion, TabNavigator, and ViewStack > implement the "auto" policy by creating all their children immediately, but > wait to create the deeper descendants of a child until it becomes the > selected child of the navigator container. > > That means, to me, it is there by design. > > You can call myFunc from creationComplete of each children or show/hide > event of ViewStack. > > > -abdul > > > > > > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Scott > Barnes > Sent: Friday, August 26, 2005 5:15 AM > To: [email protected] > Subject: [flexcoders] creationComplete on ViewStack children *bug?* > > I've got a typical setup where i set certain properties of controls > within a child of a view stack. Inside the child i have the usual > "creationComplete=hlper.myfunc()" > > Only the myFunc doesn't even know its children within, meaning if i did > > view.myButton.enable = false; > > the view.myButton would return "undefined". > > Yet if i put creationPolicy="all" on the actual viewstack itself, the > above code example would return a valid button for view.myButton > > So in saying this, does this mean that ViewStack creates the base > containers for all of its children, but all sub-containers there > within, aren't created until that child recieves index selection, > meaning "if child 2 is clicked, now create its actual internals" > > To me, the creationComplete event *should* fire once all of its > children objects are actually created, meaning "your entire container > has come back completed, now carry out tasks" > > I also tried putting creationPolicy="all" on the child container > itself, but still nothing. It has to be done via the ViewStack in > order for me to manipulate controls within a child? > > > > > > -- > Regards, > Scott Barnes > http://www.mossyblog.com > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> > <font face=arial size=-1><a > href="http://us.ard.yahoo.com/SIG=12h9e3sfs/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1125020712/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org > > ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - > brought to you by One Economy</a>.</font> > --------------------------------------------------------------------~-> > > -- > 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 > > > > > > > > -- > 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. > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > ________________________________ > -- Regards, Scott Barnes http://www.mossyblog.com ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- 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 <*> 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/

