I'm very new to flash and actionscript so please forgive the
I want to create a frame advance button for a MovieClip
timeline. But rather than advancing one frame (using the .nextFrame
command) can I make the button skip, say, 10 frames at any point.
And a back 10 frames button too!?
give your buttons the instance name "forward_btn" and
then have this code on the timeline where you button is
forward_btn.onPress = function()
//get current frame number and add 10 to it
back_btn.onPress = function()
//get current frame num and minus 10 from it
The this._parent refers to the timeline to manipulate, can be
replaced by _root if its the root timeline. And gotoAndPlay can be
replaced by gotoAndStop if you need to go there and stop instead.