Loop 3 times and then play

hy :slight_smile: 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 :slight_smile:

before frame 5 put


var numberOfTimes:Number = 0;

on frame 12 put


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

didnt test it but should work

thanks thanks and thanks works fine :slight_smile:

no worries mate glad to help :smiley: