I wanted to know how i would be able to make a tween wait a few extra seconds before it is carried out? MY CODE BELOW:
btn_1.addEventListener(MouseEvent.CLICK, about_navigate);
function about_navigate(event:MouseEvent):void
{
topbarTween.yoyo();
//how to make the below tween wait 2 seconds before it is carried out
btmTween.yoyo();
}
I am new to AS3 so any help would be much appreciated!
I don’t think the Native
Tweenclass has a built in delay method (like most third party solutions do – Though someone please correct me if I’m mistaken).What you can do is use
flash.utils.setTimeoutor aTimer.