I want a button in my scene to switch from one image to another on roll over and switch back to the first image upon roll out. I also want it so that if someone clicks the button, it'll go to a different frame within the scene. I'm using this:
on (rollOver) {
gotoAndStop('shell bullet', 2);
break;
}
on (rollOut) {
gotoAndStop('shell bullet', 1);
break;
}
on (press) {
gotoAndStop(4);
break;
}
(shell bullet is the instance name of the button)
The rollover part works fine, but upon rollout, the clip goes back to the first keyframe (which doesn't have the button in it.)