Question
Loop timeline then play frame label
Hello Everyone,
This is my first post and I'm not really a programer so please go easy on me. I'm trying to loop my timline from frame 1 to frame 253 and then once it has reached two loops it goes to and plays a Frame Label. The code below is what I've placed at frame 253 and it loops but it just loops continuosly once it hits frame 253. Can anyone sugest an edit to get this snippet to work correctly? Thanks very much!
this.loopsPlayed++; console.log(this.loopsPlayed);
if (this.loopsPlayed >= 2) {
this.gotoAndPlay('_end');
} else {
this.gotoAndPlay(0);
}
