Fizz Moderator
Posts : 1023 Experience : 5970 Join date : 2009-03-25 Age : 28 Location : London Country :
| Subject: need help... Fri Apr 24, 2009 1:50 pm | |
| in actionscript 2, how can i get a button to bring me to the next scene? (i suck at actionscript ) | |
|
Reaven Admin
Posts : 676 Experience : 10001287 Join date : 2008-12-17 Age : 30 Location : im your neighbor!!!.....naah, im German. Country :
| Subject: Re: need help... Fri Apr 24, 2009 2:43 pm | |
| - Code:
-
on(release){ gotoAndPlay(nextScene); }
or,if you named your scene: - Code:
-
on(release){ gotoAndPlay("scene name here with quotes", 1); }
the number "1" is the frame where it starts playing. hope it helped | |
|
Fizz Moderator
Posts : 1023 Experience : 5970 Join date : 2009-03-25 Age : 28 Location : London Country :
| Subject: Re: need help... Fri Apr 24, 2009 5:06 pm | |
| thanks alot man just what i needed :) | |
|
Fizz Moderator
Posts : 1023 Experience : 5970 Join date : 2009-03-25 Age : 28 Location : London Country :
| Subject: Re: need help... Fri Apr 24, 2009 5:23 pm | |
| actually, no didn't work i typed on(release){ gotoAndPlay("scene2", 1); } and it just goes back to scene 1, frame 1. | |
|
Reaven Admin
Posts : 676 Experience : 10001287 Join date : 2008-12-17 Age : 30 Location : im your neighbor!!!.....naah, im German. Country :
| Subject: Re: need help... Fri Apr 24, 2009 9:48 pm | |
| you must write the name of the scene exactly how you named it......that means:
capital letters, spaces between the words and stuff. (if the name is incorrect it ALWAYS will play scene one)
try it again and post the results. =) | |
|
Flood
Posts : 6 Experience : 7 Join date : 2009-05-18 Country :
| Subject: Re: need help... Mon May 18, 2009 6:50 am | |
| Just use his first code, if your trying to go from scene 1 to scene 2. | |
|
Marexx
Posts : 479 Experience : 536 Join date : 2009-05-09 Age : 29 Country :
| Subject: Re: need help... Mon May 18, 2009 2:11 pm | |
| that problem was solved ages ago :D | |
|
Flood
Posts : 6 Experience : 7 Join date : 2009-05-18 Country :
| Subject: Re: need help... Tue May 19, 2009 4:51 am | |
| I see, didn't look at the date. | |
|
Sponsored content
| Subject: Re: need help... | |
| |
|