I've got this code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myTween1:Tween;
var myTween2:Tween;
button.onRelease = setInterval(function(){
if(square._height == 1 && square._width == 1){
myTween1 = new Tween(square,"_height",Regular.easeOut,0,150,2,true);
myTween2 = new Tween(square,"_width",Regular.easeOut,0,150,2,true);
}
},1000);
What I want to do is: When I click the button it will wait 1 second then play the tweens.
What it does do: When I test the movie it just waits 1 second then plays the tweens (I haven't even clicked the button).
So can anyone help me to get it doing what I want it to do please?
Any help is appriciated.
Thanks,
Brad.
