Flash – Go To Frame ActionScript


When you have got a movie and you want to navigate it frame by frame then this script is handy. You can write frame number to jump at that frame. Add stop button on starting frame. Create new frames and add relevant contents on them. Create an input text and name it (assign variable) goto and create a button and write following action script on that.

on (release) {
if (Number(/:goto)>5) {
gotoAndStop(7);
}
}
on (release) {
if (Number(/:goto) == 1) {
gotoAndStop(2);
} else if (Number(/:goto) == 2) {
gotoAndStop(3);
} else if (Number(/:goto) == 3) {
gotoAndStop(4);
} else if (Number(/:goto) == 4) {
gotoAndStop(5);
} else if (Number(/:goto) == 4) {
gotoAndStop(5);
} else {
gotoAndStop(7);
}
}

Download Script

Related Posts


Leave a Reply

Your email address will not be published. Required fields are marked *