skeletrooper
IS-IT--Management
I have a MC instance that functions as a button, in order to get the proper button animation I need. I use a gotoAndPlay(scene, frame) function, but the movie won't goto and play the other scene upon mouseclick. Any ideas? Here's my button:
onClipEvent (load) {
stop ();
var speed = 1;
var direction;
}
onClipEvent (enterFrame) {
if (direction == "ff"
{
gotoAndStop (_currentframe+speed);
} else if (direction == "rr"
{
gotoAndStop (_currentframe-speed);
}
}
on (rollOver) {
_root.oneOut.direction = "ff";
}
on (rollOut) {
_root.oneOut.direction = "rr";
}
on (release) {
gotoAndPlay("Commercials", 1);
}
The gotoAndPlay line doesn't work. BTW, My MC instance is named "oneOut". Upon button release, the clip plays from its first animation frame (in scene "Home"
, but does not got to the "Commercials" scene.
-Wes
onClipEvent (load) {
stop ();
var speed = 1;
var direction;
}
onClipEvent (enterFrame) {
if (direction == "ff"
gotoAndStop (_currentframe+speed);
} else if (direction == "rr"
gotoAndStop (_currentframe-speed);
}
}
on (rollOver) {
_root.oneOut.direction = "ff";
}
on (rollOut) {
_root.oneOut.direction = "rr";
}
on (release) {
gotoAndPlay("Commercials", 1);
}
The gotoAndPlay line doesn't work. BTW, My MC instance is named "oneOut". Upon button release, the clip plays from its first animation frame (in scene "Home"
-Wes