Is it possible to use movie clips that are meant to act as buttons with action script to move from scene to scene?
I'm fairly new to flash and learning as I go. What I've done is to create two scenes. One is named main and the other is named results_page.
The main scene holds my movie clip button and this is the action script I use to control it:
stop();
//runs simple dotted line animation out away from button
resultsEnter.onRollOver = function () {
gotoAndPlay("frame1");
}
//runs simple animation to pull dotted line back into button
resultsEnter.onRollOut = function () {
gotoAndStop("frame1");
}
//On mouse button release, calls results_page scene
resultsEnter.onRelease = function () {
gotoAndStop("results_page",1);
}
Everything seems to works including the mouse cursor changing to show an active area it's hovering over. But, when the movie clip button is clicked on nothing occurs and scene results page isn't called.
Can anyone offer a hint as to what I'm doing wrong?
Thanks,
FSEdge
I'm fairly new to flash and learning as I go. What I've done is to create two scenes. One is named main and the other is named results_page.
The main scene holds my movie clip button and this is the action script I use to control it:
stop();
//runs simple dotted line animation out away from button
resultsEnter.onRollOver = function () {
gotoAndPlay("frame1");
}
//runs simple animation to pull dotted line back into button
resultsEnter.onRollOut = function () {
gotoAndStop("frame1");
}
//On mouse button release, calls results_page scene
resultsEnter.onRelease = function () {
gotoAndStop("results_page",1);
}
Everything seems to works including the mouse cursor changing to show an active area it's hovering over. But, when the movie clip button is clicked on nothing occurs and scene results page isn't called.
Can anyone offer a hint as to what I'm doing wrong?
Thanks,
FSEdge