I wish to dispatch an customized event in my widget. what i have done in my widget is this:
step 1: i created an event type:
<fx:Metadata>
[Event(name="mywidgetevent", type="flash.events.Event")]
</fx:Metadata>
then in step 2: i have invoked this event using
var eventObject:Event=new Event("mywidgetevent");
dispatchEvent(eventObject);
Now I wish to use this event handler. can i use this widget in my application using <components tag> becaz than i can catch the event and write eventhandler for this. If not what is other way of doing this.
regards
nadeem
step 1: i created an event type:
<fx:Metadata>
[Event(name="mywidgetevent", type="flash.events.Event")]
</fx:Metadata>
then in step 2: i have invoked this event using
var eventObject:Event=new Event("mywidgetevent");
dispatchEvent(eventObject);
Now I wish to use this event handler. can i use this widget in my application using <components tag> becaz than i can catch the event and write eventhandler for this. If not what is other way of doing this.
regards
nadeem