Flash Game Design  
 
     
Tutorials Articles
     
Subscribe to Flash Tutorials  
 
Step 24.
This is the final part of this Flash tutorial. Next, create a layer above the button layers and create a blank key frame (f7)at frame 15. Add the text for button1, using the settings shown below.
 
 
Step 25.
Add the rest of the button's text in the same text field.
 
Step 26.
Create another laye called script and create a blank key frame (f7) at frame 15.
 
Step 27.
Add the code below. This code has an onPress function for each button instance name. First off all the when each button is pressed, the menu is told to go back to frame 1, where there are only blank key frames. Then pages MC is told to go to it's corresonding label. It is refered to as _parent because it's on a level below the Menu MC.
 
Step 28.
Add a stop code on frame 1.
Step 29.
Go back to the main timeline and make sure that the layers are organised like the image below. Give the tutorials button the instance name "mainButton"
Step 30.
Add a script layer and enter the code below. This will tell the menu to start moving, by going to frame 2.
Save the file and publish the flash movie, bringing us to the end of this Flash tutorial! Download Fla
Part: 1 | 2 | 3 | 4 | 5 | 6
 
 
Flash Game Design | Photoshop & Flash Tutorials
 
Privacy Policy | Site Usage | Contact
Site Copyright © 2006 - 2009 Nick DS. All rights reserved.