PDA

View Full Version : loop 3 times and then play



nnnswordfish
June 4th, 2008, 04:14 PM
hy :) i have movieclip that starts palyng on 5 frame and ends to 12 frame,i want to loop it from 5 to 12 3 times and than to play frame 13 how i can do this?is it possible? thanks :)

matthewjumps
June 4th, 2008, 04:34 PM
before frame 5 put


var numberOfTimes:Number = 0;

on frame 12 put


numberOfTimes++;
if(numberOfTimes < 3){
gotoAndPlay(5)
}


didnt test it but should work

nnnswordfish
June 4th, 2008, 04:42 PM
thanks thanks and thanks works fine :)

matthewjumps
June 4th, 2008, 04:59 PM
no worries mate glad to help :D