Johnvh.com - home of Dallas, Texas based Flash Developer and web enthusiast John Van Horn

Online home of John Van Horn

Are your event handlers bad?

Event handlers can be bad. They're not intrinsically bad - that's how shit gets done in AS3. It's the way they often get written that can be bad. Consider the following example:
PLAIN TEXT
Actionscript:

package

{

    import fl.motion.Color;

   

    import flash.display.DisplayObject;

    import flash.display.Sprite;

    import flash.events.Event;

    import flash.events.MouseEvent;

 

    public class Nothing [...]

Twitter
Del.icio.us links
» My delicious bookmarks