Handling Spark effect events

Spark effects support all the general events, such as effectStart, effectStop, and effectEnd. For more information on handling these events, see Handling effect events.

In addition, the Spark effect classes support the following additional events:

  • effectRepeat For any effect that is repeated more than once, dispatched when the effect begins a new repetition. The type property of the event object for this event is set to EffectEvent.EFFECT_UPDATE.

  • effectUpdate Dispatched every time the effect updates the target. The type property of the event object for this event is set to EffectEvent.EFFECT_UPDATE.