Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Issue with TweenMax alpha

$
0
0

Hi! I just started using Greensock plugin for Edge the other day. I'm having this problem with the alpha effect.

 

Everytime I click on the Trigger the effect of alpha seems to be stuck when I click faster until it disappears. I think I have to disable the trigger when the symbol is playing but I don't know the function to use.

 

if (sym.getSymbol("arm2").isPlaying() == true){

sym.getSymbol("arm2").stop();

sym.$("hi").html("why did you stop?");

TweenMax.from(hello, 0.5, {alpha:0});

}

 

 

 

else if (sym.getSymbol("arm2").isPlaying() != true){

sym.$("hi").html("hi again!");

 

 

sym.getSymbol("arm2").play();

TweenMax.from(hello, 0.5, {alpha:0});

}


Viewing all articles
Browse latest Browse all 9897

Trending Articles