Go Back   The Clock Crew
Register FAQ Members List Search Today's Posts Mark Forums Read

Tutorials:flash:actionscript:menus
Home   Backlinks   8 Views   Index   Random  
   

Ok. First create a cool menu with 4 buttons and names on the buttons. The current scene your in should be called “Menu” by the way and there should be a stop();

To name menus go to Windows → Design Panels → Scenes and double click on the layer to rename it.

Next, make 4 new scenes and name them Part 1/2/3/4.

Ok, highlight the first button and go into the actions panel and put in:

on(release){
goToAndPlay("Part 1",1);
}

Now do that with every button but change the # in the Part in the goToAndPlay.

Now, open up your fla you want to put on a part.

Open up part one and create as many layers that is corresponding to the FLA has.

Copy all the frames by holding shift, clicking the first frame and going to the end of the timeline and clicking the last frame on the timeline and then right click → copy frames.

Go into your part 1 scene and paste them into the corresponding layer.

Finish that up and create a new layer called “Actions”.

Drag it to the top and create a blank keyframe at the last frame on the timeline.

Ok, now we have two choices, you can loop it with a menu button in the corner (have to make the menu button) or you can send it back to the menu. We will do the loop first.

Ok, so create another layer and call it “menu” (you will need a button that says “menu” or the variation).

Drag the menu button into the first frame (make sure you have a lot of blank frames [not keyframes] going to the end of the movie) and put it in the lower right corner.

Highlight the button and put this actionscript in:

on(release){
goToAndStop("Menu",1);
}

Also, put these actions on the last frame of the movie in the Actions layer:

stopAllSounds();
goToAndPlay("Part #",1);
}

Now, to do the back to the menu at the end you wont need the menu button or the menu layer.

You just have to go to the last keyframe on the Actions layer and put this in:

goToAndStop("Menu",1);
stopAllSounds();

That’s it! Remember, if you have a preloader, put it in a layer thats above menu ok? Have fun with collabs.

 

Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.