Quick newbie question.
I have a rollover Glint effect animation on my logo. (I rollover the logo and a quick shiny masked out Glint effect passes through it from left to right.)
The problem is, if I rollover the logo several times without waiting for the Glint animation to complete, the animation breaks.
So I what I need is to tell the Glint animation (Glint function) to wait until it completes, before being able to be triggered again. (If I rollover the logo several times, the Glint animation always completes first and only plays again after each completion)
I use TweenLite for animating the Glint effect.
Instance names:
Logo = logo_mc
Glint MovieClip = logo_glint
Glint function = glintFunc
Here is the Glint function:
//Glint function
function glintFunc ():Void{
TweenLite.from(logo_glint, 0.8, {_x:-200, ease:Circ.easeOut});
}
Here is the Logo Rollover function:
//Logo rollover
logo_mc.onRollOver = function():Void{
glintFunc();
}
Any idea?
Thanks for your time!