Replacing Events with AS3Signals
I’ve been playing with AS3Signals lately, and think I will be replacing flash events with it on all future projects.
It’s so simple!
So what is AS3Signals?
AS3Signals is a lightweight replacement for Flash Events written by Robert Penner.
AS3Signals aims to reduces the amount of traditional ‘boiler plate’ code required to receive and dispatch messages in Flash.
Why use AS3Signals?
Writing custom events tends to be a bit of a tedious chore on most projects, and I know many developers approach custom Events in different ways.
Some choose to create a single flexible Event with a loosely typed payload (ie. data:Object), while others like myself, like to strongly type events with value objects wherever I can (resulting in many custom event classes per project).
AS3Signals practically does away with the need for custom event classes altogether, as you now simply append any number of parameters to your signal.
The time saved not having to write all of these custom events alone is reason enough to jump into AS3Signals.
Read more →