ForumsProgramming ForumNeed helpp with actionscript

7 3070
julianat
offline
julianat
40 posts
Nomad

I keep trying to get a code for a button going into another screen but I cant fin dwhat it is. HELP

  • 7 Replies
julianat
offline
julianat
40 posts
Nomad

i mean scene

Klaushouse
offline
Klaushouse
2,770 posts
Nomad

That makes no sense? Be specific, what is your exact problem and what are you trying to do.

Zega99
offline
Zega99
32 posts
Nomad

Yea, I don't understand ether. Please make it more clearly so we can see what you mean thanks.

LonLonRanch
offline
LonLonRanch
172 posts
Nomad

I think I understand what you're asking for. The code would look something like this:

gotoAndStop("sceneTwo", 1);

This would go to the scene called "sceneTwo" and stop on frame 1. So you can edit that as needed. And if you want it to play instead of stop just do it like so:

gotoAndPlay("sceneTwo", 1);

Hope that helps

Klaushouse
offline
Klaushouse
2,770 posts
Nomad

Or just gotoAndStop("sceneTwo"
Or also gotoAndStop(framethatyouwantogoto);

?

Programpro
offline
Programpro
562 posts
Nomad

click on the frame the button is in, and type:


my_btn.onPress = function () {

gotoAndPlay("Name of scene two",1);

}


where my_btn is the instance name of your button.

Hope this helps! (It's kind of confusing to understand what ur asking.)

julianat
offline
julianat
40 posts
Nomad

i was asking how to make a button on scene 1 go to scene 2 and thanks all of you it helps

Showing 1-7 of 7