gamemakea
02-26-2008, 11:28 PM
i have a timer so it goes to frame 2.I am making a game when people move acrros screen and they don't stop when they get to frame 2. heres my timer
this.stop();
var counter:Number = 120;
this.onEnterFrame = function(){
counter--;
if(counter<1){
this.gotoAndPlay(2);
delete this.onEnterFrame;
counter=120;
}
}
this.stop();
var counter:Number = 120;
this.onEnterFrame = function(){
counter--;
if(counter<1){
this.gotoAndPlay(2);
delete this.onEnterFrame;
counter=120;
}
}