ActionScript for the Button
on (release) {
var intFrame = _currentframe;
switch (intFrame) {
case 1 :
strDisplay = "Went to frame 2!";
intFrame++;
break;
case 2 :
strDisplay = "Went to frame 3!";
intFrame++;
break;
case 3 :
strDisplay = "Went to frame 4!";
intFrame++;
break;
case 4 :
strDisplay = "Went to frame 2!";
intFrame = 2;
break;
default :
trace("For all other frames!");
}
gotoAndStop(intFrame);
}