The question is, how do I do this when the button is already animating using a tween class.
I want the button to be pulsating, then when you rollover it, it expands and stays until you roll off. However, when you rollover here, it keeps pulsating. Any ideas what I’m doing wrong, and how I can fix this?
Here’s what my script looks like:
//tween the button
var button_scaleX:Tween = new Tween(audioButton, “_xscale”, Regular.easeOut, 100, scaleUp, 1, true);
button_scaleX.onMotionFinished = function (){ this.yoyo(); }
var button_scaleY:Tween = new Tween(audioButton, “_yscale”, Regular.easeOut, 100, scaleUp, 1, true);
button_scaleY.onMotionFinished = function (){ this.yoyo(); }
audioButton.onRollOver = function():Void{
var button_scaleX:Tween = new Tween(audioButton, “_xscale”, Regular.easeOut, audioButton._xscale, scaleUp, 1, true);
var button_scaleY:Tween = new Tween(audioButton, “_yscale”, Regular.easeOut, audioButton._yscale, scaleUp, 1, true);
}
Thanks!
Elliott