all groups > flash actionscript > february 2005 >
You're in the

flash actionscript

group:

Jumping To Frames In A Movice Clip



Jumping To Frames In A Movice Clip punx78
2/28/2005 10:02:17 PM
flash actionscript: I can't figure out why when I use the rollOver and rollOut function on a movie
clip that contains 'labeled' frames why it doesn't jump to the frame like I
expect. This action was inserted on a button on the main timeline: on
(rollOver) { test.gotoAndPlay ('Start'); message.text = 'Should Be Playing
Start'; } on (rollOut) { test.gotoAndPlay ('End'); message.text = 'Should Be
Playing End'; } On my movie clip 'test' I have a frame labeled Start, that i
can get to play but after it runs i have a action to stop it. stop(); Then
later in the movie clip I have a frame labeled End that never gets executed on
the rollout. I put a dynamic message box in my movie to test it out. The text
changes on the rollover and rollout of the mouse from the button, but the
scripts don't run as expected. Can anyone offer advice or point me to some
resources on this topic? I am a beginner and any help is greatly appreciated.
Thanks a lot!
Re: Jumping To Frames In A Movice Clip redl3tt3r
2/28/2005 10:10:35 PM
I am no expert bit I think this will help you out, try placing _root before
your symbol name. It just lets your movie know that you are working with a
symbol on the main stage.

on (rollOver) {
_root.test.gotoAndPlay ("Start");
message.text = "Should Be Playing Start";
}
on (rollOut) {
_root.test.gotoAndPlay ("End");
message.text = "Should Be Playing End";
}

Hope it helps.
-redLetter
AddThis Social Bookmark Button