GlowAnims
Would you like to react to this message? Create an account in a few clicks or log in to continue.

GlowAnims

GlowAnims
 
HomePortalLatest imagesSearchRegisterLog in

 

 need help...

Go down 
4 posters
AuthorMessage
Fizz
Moderator
Moderator
Fizz


Posts : 1023
Experience : 5970
Join date : 2009-03-25
Age : 28
Location : London
Country : UK

need help... Empty
PostSubject: need help...   need help... I_icon_minitimeFri 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 :P)
Back to top Go down
http://fizzld.deviantart.com/
Reaven
Admin
Admin
avatar


Posts : 676
Experience : 10001287
Join date : 2008-12-17
Age : 30
Location : im your neighbor!!!.....naah, im German.
Country : Germany

need help... Empty
PostSubject: Re: need help...   need help... I_icon_minitimeFri 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
Back to top Go down
http://glowanims.ohost.de
Fizz
Moderator
Moderator
Fizz


Posts : 1023
Experience : 5970
Join date : 2009-03-25
Age : 28
Location : London
Country : UK

need help... Empty
PostSubject: Re: need help...   need help... I_icon_minitimeFri Apr 24, 2009 5:06 pm

thanks alot man just what i needed :)
Back to top Go down
http://fizzld.deviantart.com/
Fizz
Moderator
Moderator
Fizz


Posts : 1023
Experience : 5970
Join date : 2009-03-25
Age : 28
Location : London
Country : UK

need help... Empty
PostSubject: Re: need help...   need help... I_icon_minitimeFri Apr 24, 2009 5:23 pm

actually, no didn't work :P i typed



on(release){
gotoAndPlay("scene2", 1);
}

and it just goes back to scene 1, frame 1.
Back to top Go down
http://fizzld.deviantart.com/
Reaven
Admin
Admin
avatar


Posts : 676
Experience : 10001287
Join date : 2008-12-17
Age : 30
Location : im your neighbor!!!.....naah, im German.
Country : Germany

need help... Empty
PostSubject: Re: need help...   need help... I_icon_minitimeFri 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. =)
Back to top Go down
http://glowanims.ohost.de
Flood

Flood


Posts : 6
Experience : 7
Join date : 2009-05-18
Country : Nowhere

need help... Empty
PostSubject: Re: need help...   need help... I_icon_minitimeMon May 18, 2009 6:50 am

Just use his first code, if your trying to go from scene 1 to scene 2.
Back to top Go down
Marexx

Marexx


Posts : 479
Experience : 536
Join date : 2009-05-09
Age : 29
Country : Nowhere

need help... Empty
PostSubject: Re: need help...   need help... I_icon_minitimeMon May 18, 2009 2:11 pm

that problem was solved ages ago :D
Back to top Go down
Flood

Flood


Posts : 6
Experience : 7
Join date : 2009-05-18
Country : Nowhere

need help... Empty
PostSubject: Re: need help...   need help... I_icon_minitimeTue May 19, 2009 4:51 am

I see, didn't look at the date.
:(
Back to top Go down
Sponsored content





need help... Empty
PostSubject: Re: need help...   need help... I_icon_minitime

Back to top Go down
 
need help...
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
GlowAnims :: Forum General :: Actionscript and programming-
Jump to: