SimpleButton and Events in ActionScript 3.0 Tutorial
August 2nd, 2006
16 comments
In AS3, one of the most significant changes was to make the EventDispatch class the standard tool for calling events. This is a huge step in ActionScript as code written by different developers will become a lot more similar.
In the following example I will demonstrate how to use addEventListener to add a click event to a button that is built using the new SimpleButton object. The SimpleButton is a light weight alternative to the heavier MovieClip object.
Categories: ActionScript 3.0 Tutorial, Flash Development ActionScript 3.0, Events, Learning, Tutorial