I’m using the following code to rewind a movie. However, it’s rewinding into the previous scene. Any suggestions on how I can made it automatically stop on frame 1?
rewind_btn.onPress = function() {
_root.createEmptyMovieClip(“controller_mc”, 1);
controller_mc.onEnterFrame = function() {
_root.gotoAndStop(_root._currentframe-2);
};
};
rewind_btn.onRelease = function() {
controller_mc.removeMovieClip();
stop();
};