RE: [flexcoders] How To Access Child From Parent?

2008-09-12 Thread Alex Harui
button.addEventListener(...) button.label = foo control.removeChild(button) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Easton Sent: Thursday, September 11, 2008 6:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How To Access Child From Parent? Hi

Re: [flexcoders] How To Access Child From Parent?

2008-09-12 Thread Haykel BEN JEMIA
you will have to use any of these functions/properties: * numChildren : int * getChildAt(index:int):DisplayObject * getChildByName(name:String):DisplayObject On Fri, Sep 12, 2008 at 3:57 AM, Mark Easton [EMAIL PROTECTED] wrote: Hi, I am having a mental blank moment. If I add a child to a

Re: [flexcoders] How To Access Child From Parent?

2008-09-12 Thread Haykel BEN JEMIA
you will have to use any of these functions/properties: * numChildren : int * getChildAt(index:int):DisplayObject * getChildByName(name:String):DisplayObject On Fri, Sep 12, 2008 at 3:57 AM, Mark Easton [EMAIL PROTECTED] wrote: Hi, I am having a mental blank moment. If I add a child to a

RE: [flexcoders] How To Access Child From Parent?

2008-09-12 Thread Gordon Smith
Of Mark Easton Sent: Thursday, September 11, 2008 6:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How To Access Child From Parent? Hi, I am having a mental blank moment. If I add a child to a control. How can I access the child from the control? i.e. button = new Button

[flexcoders] How To Access Child From Parent?

2008-09-11 Thread Mark Easton
Hi, I am having a mental blank moment. If I add a child to a control. How can I access the child from the control? i.e. button = new Button(); control.addChild(button); So via control how can I now access that button? Cheers Mark