You give each button it’s own id attribute and you can directly access that button by it’s id…you don’t have to reference the parent id first.

 

Robert L. Brueckmann

Web Developer

Merlin Securities,LLC

595 Madison Avenue

New York, NY 10022

p: 212.822.4821
f: 212.822.4820


From: Pilby [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 02, 2005 2:40 PM
To: Flex Coders
Subject: [flexcoders] How doI get references to children of a container?

 

If I had a <mx:Canvas id="cvs"> which had 3 buttons, how can I access references to these 3 buttons programmatically?

 

I have tried :

 

for (var p in cvs)

    alert(p);

 

But I see no property I can use to iterate through the children, nor do I see the "id" of these 3 buttons.

 

Thanks.

 



 

This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, pleaserefrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.
 
Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.

Reply via email to