Scenes

Does anybody know the exact action script for changing to another scene, in Flash MX…???

I’m assuming that this means you click a button and the scene loads.

This is the code you’ll need:

on (event) {
gotoAndPlay(“scene_name”, “frame_label”);
}

event: on(press), on(release) etc.
scene_name & frame_label: self explanatory.

you can use:

gotoAndPlay(“Scene 2”, 1);

or

nextScene();


seems someone was posting while I was! heh, well now its just reinforced.

a little warning about nextscene(); that some people forget about. When you invoke this command, it goes to the next scene, but it stops.