Reputation: 10800
When I add something like a button to my code, I can enter something like this:
<mx:Button id="myButton"
When I click space, I get the public properties, methods, etc, as well as all the relevant events, such as "Click". I can type click, and have it auto-generate a method stub to handle those kinds of events.
My question is, how do I specify the relevant events, and specify what the method stubs look like? I'm having a hard time finding this since I'm not quite sure what search terms to use. Thanks in advance.
Upvotes: 1
Views: 153
Reputation: 609
You would use the Event metadata tag in your component to control that behavior.
For example, if you wanted to use Event.CHANGE
, you would add the following metadata tag to the class:
[Event name="change",type="flash.events.Event")]
Upvotes: 3