Archive

Posts Tagged ‘Events’

SimpleButton and Events in ActionScript 3.0 Tutorial

August 2nd, 2006 Fraser Crosbie 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.

Read more…