flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Event when all effect ended
Date Tue, 20 Oct 2015 16:44:02 GMT


On 10/20/15, 8:49 AM, "chris_d_k" <ck@christiankiefer.de> wrote:

>Hi,
>
>when I want to do something after an effect has ended for all targets..
>
>fadeOutEffect.addEventListener(EffectEvent.EFFECT_END,
>handleFadeOutEffectEnded);
>fadeOutEffect.targets = [aLotOfTargets];
>fadeOutEffect.play();
>
>will it be reliable to check this in the handleFadeOutEffectEnded by
>checking
>
>fadeOutEffect.isPlaying == false

I don’t know the effects system that well, but the code looks like that
would work.


-Alex

Mime
View raw message