00:00
00:00
Newgrounds Background Image Theme

Crakie20 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Actionscript 2 menu help?

284 Views | 2 Replies
New Topic Respond to this Topic

Actionscript 2 menu help? 2013-08-04 22:57:14


So I've tried making a menu with buttons I've made, not just a simple preloader. I want a main "play movie" button, and then I want an extra button to play a little short I've made as well.

For the play movie button, here's the script I'm using.

on (release) {
gotoAndPlay ("Scene 2", 1);
}

And that works just fine. But I have another button for the extra short, and that button just plays the movie again. Here's the script I've used for the short button.

on (release) {
gotoAndPlay ("Scene 3");
}

On both layers of the buttons, I have this script on each frame.

stop();

Any suggestions for where I went wrong?

Response to Actionscript 2 menu help? 2013-08-05 07:26:01


At 8/4/13 10:57 PM, SwedishPlumTrees wrote: on (release) {
gotoAndPlay ("Scene 2", 1);
}

And that works just fine. But I have another button for the extra short, and that button just plays the movie again. Here's the script I've used for the short button.

on (release) {
gotoAndPlay ("Scene 3");
}

Make it gotoAndPlay( "Scene 3", 1); when you have just "Scene 3" it thinks you're trying to go to a frame with the label "Scene 3", you need both arguments


BBS Signature

Response to Actionscript 2 menu help? 2013-08-05 18:56:47


Got it to work now. I just changed "scene 3" to the actual name of the scene I'm using. Thanks for the help anyway.