1.

How To Create Custom Events? Explain The Steps To Create A New Custom Event?

Answer»

To dispatch a new event from your custom component, you must do the following:

  1. (Optional) Create a subclassfrom the flash.events.Eventclass to create an event class that describes the event object. 
  2. (Optional) Use the [Event]metadata TAG to MAKE the event PUBLIC so that the MXML compiler recognizes it. 
  3. Dispatch the event USING the dispatchEvent() METHOD

To dispatch a new event from your custom component, you must do the following:



Discussion

No Comment Found