Mega Code Archive
Define an event listener for the endEffect event
import mx.effects.*;
import mx.events.EffectEvent;
import mx.core.UIComponent;
private function endEffectListener(eventObj:EffectEvent):void {
// Access the effect object.
var effectObj:Effect = Effect(eventObj.target);
// Access the target component of the effect.
var effectTarget:UIComponent =
UIComponent(eventObj.effectInstance.target);
// Write the target id and event type to the TextArea control.
myTA.text = effectTarget.id;
myTA.text = myTA.text + " " + eventObj.type;
}