• Hey, guest user. Hope you're enjoying NeoGAF! Have you considered registering for an account? Come join us and add your take to the daily discourse.

Flash MX 2004 help

Status
Not open for further replies.
Just doing a beginning project, but I'm having a hard time controlling scenes.

I've converted a graphic that i imported into a button. And put this action script on it to go to a certain scene.

on (press) {
gotoAndPlay("2,1");
}

This button should make the movie go to scene 2, frame 1, but its just not workin
Background info:
The first scene is jsut a short intro where a couple buttons finally come up in a keyframe. In the keyframe itself, I have a stop action so the main scene doesnt loop. And on each button I have the action that i wrote above, to go to certain scenes depending on which button i click. Am i totally setting this up wrong structurally? Do i need to put any kind of "Reset" action if i want to go back to a previous scene. Also, in each scene, I have a mouse hide and replace action, could this have anything to do with it?

thanks in advance
 
Shot in the dark, because I don't know much about multiple scenes in Flash (I've always used just one), but try removing the quotes.

gotoAndPlay(2, 1)

My reason for this is that gotoAndPlay can also take a string argument that is the label of a frame.
 
Status
Not open for further replies.
Top Bottom