[flexcoders] EVENT metatag handler

2009-10-24 Thread hworke
Hello developers, in a custom component, I defined an event in metatag like this [Event(name=dragEnd, type=flash.events.Event)] public class ta extends TextArea { } Now inside this component how do I add the event listener for this event which was defined in

Re: [flexcoders] EVENT metatag handler

2009-10-24 Thread Guy Morton
try addEventListener(dragEnd,startPanAndZoom); addEventListener expects a string containing the event name as its first argument. On 25/10/2009, at 10:00 AM, hworke wrote: Hello developers, in a custom component, I defined an event in metatag like this [Event(name=dragEnd,

Re: [flexcoders] EVENT metatag handler

2009-10-24 Thread Vivian Richard
Thanks for the answer and also for the explanation. Regards On Sat, Oct 24, 2009 at 4:35 PM, Guy Morton g...@alchemy.com.au wrote: try addEventListener(dragEnd,startPanAndZoom); addEventListener expects a string containing the event name as its first argument. On

Re: [flexcoders] EVENT metatag handler

2009-10-24 Thread Jeffry Houser
I also want to add that the metadata only affects code hinting. You'll still need to dispatch that event from within your custom component. Vivian Richard wrote: Thanks for the answer and also for the explanation. Regards On Sat, Oct 24, 2009 at 4:35 PM, Guy Morton

Re: [flexcoders] EVENT metatag handler

2009-10-24 Thread Vivian Richard
I did that this way: this.dispatchEvent(new Event(dragEnd)); On Sat, Oct 24, 2009 at 5:53 PM, Jeffry Houser j...@dot-com-it.com wrote: I also want to add that the metadata only affects code hinting. You'll still need to dispatch that event from within your custom