Have the custom component dispatch an event, with a custom "type" name,
and listen for it in the parent.  There are several implementation
options, such as allowing you to declare the handler function on the
instantiating tag, and providing for using bubbling events.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of kenny14390
Sent: Sunday, March 30, 2008 8:18 AM
To: [email protected]
Subject: [flexcoders] Custom Component and Parent Communication

 

How can I make the custom component tell the parent when it was
clicked? I can't figure out how to make them communicate except for
the parent making a new custom component and setting its properties.
I'd like to get an event or a function call when the component is
clicked (mouseDown). Thanks.

 

Reply via email to