-
Buttons to control different scenes
Hi.
I have about 5 scenes each one with some animation and also I have the main scene with 5 buttons. Each of one must go to a different scene.
Here is the code I have for one of the buttons:
on (release) {
gotoAndPlay("Cartel", 1);
}
Also I changed to
on (release) {
gotoAndPlay("Cartel", "Cartel");
}
The problem is The Cartel scene is never activated, but instead the control goes to the same scene frame 1.
Also I used
on (release) {
_root.gotoAndPlay("Cartel", "Cartel");
}
But in this case nothing happens, the button is not working at all.
Any advise is very needed and appreciatted.
Thanks in advance,
Angel
-
Senior Member
This is oneway to do what u want.
Dont use Scenes. Use the Timeline frames for navigation.
Like stop in first frame and there a button with gotoandplay action to frame 10 with stop. Frame 20 to scene 2 , frame 40 to scene 4 - each frame with stop.
The buttons you can leave it always for better navigations, or a back animation in frame 50 to the frame 1 the menu. I dont know what r u trying to do, hope this work.
This is how i make websites is very easy - the way u want to do it, i dont know how to do it. I do what u want in that way.
Luck!!!
-
Senior Member
Sorry but this is a must know to that - use Movieclips in the frames with the animations that you have in your scenes. This also works, if u wanna put that proyect online movieclips can be external and have their own preloader, so this a must , animations inside frames.
Luck again ! let me know if works -
-
give the first frame of your 5 different scenes a framelabel
on (release) {
_root.gotoAndPlay("myFramelabel");
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|