Using the Event metadata

Add Event metadata in your ActionScript class file for each event listener. The value of the Event keyword becomes the first argument in calls to the addEventListener() method, as the following example shows:

[Event("click")] // event declaration
...
class FCheckBox{
  function addEventListener(eventName:String, eventHandler:Object) {
    ... //eventName is String
  } 
}

For more information on the Event metadata keyword, see Event.