Hexagon Framework Effects Demo
Here’s a small demo that I threw together yesterday which shows how the effects in the Hexagon Framework effects package can be used. The effects package contains classes that are used on display objects to apply an animated effect on them. That is not all however. The effects send a signal back to the calling class when they are finished and there are two more classes with that effects can be arranged, namely the EffectChainer class and the EffectCombiner class.
Currently there are AlphaFade, BlurEffect, ColorFade, ModuloEffect, MoveEffect, Pixelizer and TimeDelay who act as effects. The EffectCombiner can be used to combine several of the effects into one (which means that all combined effects use the same Timer) and the EffectChainer can be used to play back effects in sequencial order (including the EffectChainer which acts as an effect on itself). The TimeDelay is a non-visual effect which simply applies a time delay.
The class from where the effects are started has to implement the INotify interface which only contains one method, notify(). The effects (as well as the EffectChainer and EffectCombiner) use this interface to notify the caller and – if necessary – give back a callID that can be used to determine which effect has returned. More detailed info on this will be available in the API docs when the framework is released … soon™.
You can focus the SWF with the Mouse and press Space to skip through the effects.