Rollover, Rollout Button, Action problems

Hi. I followed at guide on how to make a rollover animations, which rewinds it self, when you roll out…

My problem is, that the Action Script when you press the button links to the beginning of the movie… How do i change this to a Scene and Frame ?
I tried to insert (“Scene 2”, 1) at the end in gotoandplay, but nothing seems to work…

Here is the Actionscript.

stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
};
this.onRollOver = function() {
rewind = false;
play();
};
this.onRollOut = function() {
rewind = true;
};
this.onRelease = function() {
_root.gotoAndPlay(1);
};

use frame labels instead - give the frame you want to go to a frame label. Then in your code use

gotoAndPlay("framelabel")

doesn’t matter what scene :slight_smile:

Thankyou… That Worked! :smiley:

:thumb: