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 <[email protected]
<mailto:[email protected]>> wrote:
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", 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 the metatag.
in the component constructor I tried to add the event listener
like this
addEventListener(dragEnd,startPanAndZoom);
or
addEventListener(this.dragEnd,startPanAndZoom);
None works. How do I do it then? Any help will be appreciated.
Regards....
--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711 | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust