A simple one

Hey there… :glasses:

I’ve got a MC with 5 keyframes, all with a stop action on it. I then have two buttons, one called ‘next’ and one called ‘prev’…

Here’s the “almost working” idea:


//next button
on (release) {
	for(i>=1; i<=5; i++)
	this.gotoAndStop(i);
}
//prev button
on (release) {
	for(i>=1; i<=5; i--)
	this.gotoAndStop(i);
}


…why is this not working? :hugegrin: