PDA

View Full Version : script of scene change


Nomas
03-20-2006, 09:38 PM
hi i'm new to this so this might be a really bad question....
How do i get my button to take me to the next scene???

this is the code i hav tryed but doesn't work...
on (release){
_root.enter_button.nextScene();
}

enter button is the name of the button i want to take me to the next scene..

any help and i will be very thank ful

ps
this site kicks ass:D

Cota
03-20-2006, 10:05 PM
For what you want to do it would be

on (release){
_root.nextScene();
}

BUT....never target a scene...create a frame label on the first frame of the desired scene and target that. Example:

on(release){
_root.gotoAndPlay("FrameLabelName");

Nomas
03-21-2006, 05:59 AM
Thanks a bunch that second one worked fine thanks for the help