Hi Guys, I found a tutorial on line and was trying to edit it. My problem is that the left button should stop on rollout, but it doesn't for some reason. Anyone knows why please?
(If the user rolls over the right button, the movie plays and when rollout, the movie stops. If the user rolls over the left button, the movie rewinds, but when rollout, it doesn't stop where it is.)
MovieClip.prototype.rewind = function () {
if (goBack && (_currentframe>1)) {
gotoAndStop (_currentframe-1);
}
}
2-attached to the movie clip this code:
onClipEvent (enterFrame) {
this.rewind();
}
3-On the right button i have this:
on (rollOver) {
mc1.goBack = false;
mc1.play();
}
on (rollOut) {
mc1.stop();
}
4-On the left button i have this:
on (rollOver) {
mc1.goBack = true;
mc1.play();
}
on (rollOut) {
mc1.stop();
}
The first button is working and stopping on rollout, but the second button isn't(the rewind button).