If you need to access it, the best way is to keep a reference to it, such as in 
an instance variable. If you really need to get the parent to give it to you, 
you can use control.getChildAt(i).

Gordon Smith
Adobe Flex SDK TEam

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,

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



Reply via email to