Community

Need helpp with actionscript

Posted Aug 5, '08 at 8:42pm

julianat

julianat

43 posts

Wood - Knight

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

Posted Aug 5, '08 at 8:42pm

julianat

julianat

43 posts

Wood - Knight

i mean scene

 

Posted Aug 6, '08 at 2:53am

Klaushouse

Klaushouse

1,430 posts

Wood - Lord

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

 

Posted Aug 6, '08 at 3:33am

Zega99

Zega99

24 posts

Wood - Squire

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

 

Posted Aug 6, '08 at 8:04am

LonLonRanch

LonLonRanch

119 posts

Iron - Squire

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 :D

 

Posted Aug 6, '08 at 8:55am

Klaushouse

Klaushouse

1,430 posts

Wood - Lord

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

?

 

Posted Aug 6, '08 at 1:09pm

Programpro

Programpro

302 posts

Gold - Squire

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.)

 

Posted Aug 7, '08 at 9:12am

julianat

julianat

43 posts

Wood - Knight

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

 
Reply to Need helpp with actionscript

You must be logged in to post a reply!