Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK 4.5.1 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Browser: Other (specify version)
Language Found: English
Description
Steps to reproduce:
1. run the code below
2.
3.
Actual Results:
effect never ends, thus EFFECT_END event never triggered
Expected Results:
triggered EFFECT_END event
Workaround (if any):
None
private function playEffect():void
{
var uiComponent:UIComponent = new UIComponent();
// here we supposed to set its background & add to stage, and then:
var compositeEffect = new CompositeEffect();
compositeEffect = new Sequence();
var effect:Animate = new Move3D();
effect.xBy = 100;
effect.yBy = 100;
effect.duration - 300;
compositeEffect.addChild(move3d);
compositeEffect.addEventListener(EffectEvent.EFFECT_END, onEffectEnd, false, 1, true);
compositeEffect.target = uiComponent;
compositeEffect.play();
}
private function onEffectEnd(event:EffectEvent):void
{
//in this case, this will never be triggered
}