On 8/26/05, Scott Barnes <[EMAIL PROTECTED]> wrote:

> 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

That's because the children aren't yet created at the time the
creationComplete event.

> 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"

Yes, exactly.

> 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"

"creationComplete" means the container itself is created, not its
children. ;)  (Yeah I know tihs isn't obvious.)

You should listen to the "childrenCreated" event if you want to work
on the children.

Manish


------------------------ 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/
 


Reply via email to