Ok, so there are a few things to keep in mind with applying events in ActionScript.
Firstly, when you want to add an effect to a custom component, you need to attach it to an Event. You’ll need the Event and the Effect metatags.
//Handle the step event
By dispatching the event, you will call the effect also.
Secondly, and which is somewhat unintuitive, is to set an effect with Actionscript, you set it like a style.
So, in the example above, we are inside our custom component, passing-on a custom effect to the built-in effect “addedEffect”.