I think giving an example is perfectly fine answer. But in words it would be something like this:
"You put an event attribute on the component tag. The name of the attribute is the event type the component should listen for. The value of the attribute is the body of the event handler to be executed when it hears that event. The event handler can use an implied argument named 'event' to access the Event instance." Gordon Smith Adobe Flex SDK Team From: [email protected] [mailto:[email protected]] On Behalf Of nathanpdaniel Sent: Monday, March 09, 2009 7:36 AM To: [email protected] Subject: [flexcoders] Re: Flex Interview Questions > 5) How do you add event listeners in mxml components. Now AS3 components? I was actually asked this once (someone was actually asking me at work) - but - I didn't really know how to answer the mxml portion - other than to give a code sample... <custom:MyComponent eventType="eventHandler()" /> What WOULD be a better/proper answer for that???

