Flash CS4 Actionscript 3.0 --- Make my script loop!
Posted
by Ross
on Stack Overflow
See other posts from Stack Overflow
or by Ross
Published on 2010-03-03T10:54:10Z
Indexed on
2010/05/09
19:58 UTC
Read the original article
Hit count: 241
Here is my script... all I want to do is have it continuously loop!
import fl.transitions.Tween;
import fl.transitions.easing.*;
yourwebsite_mc.visible=false;
var uptodateFadeTween=new Tween(uptodate_mc,"alpha",Strong.easeOut,0,1,3,true);
var uptodateRotateTween=new Tween(uptodate_mc,"rotation",Strong.easeOut,360,0,3,true);
var uptodateXTween:Tween=new Tween(uptodate_mc,"x",Strong.easeOut,-250,200,3,true);
var uptodateDone:Timer=new Timer(3000,1);
uptodateDone.addEventListener(TimerEvent.TIMER, timerDoneF);
uptodateDone.start();
function timerDoneF(e:TimerEvent):void {
var uptodateYTween:Tween=new Tween(uptodate_mc,"y",Strong.easeOut,129,-150,3,true);
}
var uptodateFlyUp:Timer=new Timer(3500,1);
uptodateFlyUp.addEventListener(TimerEvent.TIMER, timerDoneG);
uptodateFlyUp.start();
function timerDoneG(e:TimerEvent):void {
yourwebsite_mc.visible=true;
var yourwebsiteXTween:Tween=new Tween(yourwebsite_mc,"x",Strong.easeOut,-200,450,1.5,true);
}
© Stack Overflow or respective owner