Flash – Go To Frame ActionScript

by Hiroshi on October 26, 2008

in Actionscript, Adobe Flash, Control, Utilities

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

Previous post:

Next post: