Flash CS3 Tutorial

1 - I can do better 2 - Jury's out 3 - Pretty darn good 4 - Splendiferous 5 - Awesometastic by 4 people | Log in to rate

Ranked #273 in Games, #5,399 overall

Flash CS4Tutorial on how to make a Drop Down Menu

On this page you will find a Flash CS4 Tutorial on how to make a Flash Drop Down Menu. For the complete tutorial and source files please go to FrenchSquared.com

How To make a Flash Drop Down Menu 

Tutorial on makeing a Flash Drop Down Menu

Lets jump right into this Flash CS3 Tutorial and start making buttons and a pull-down menu. We are going to use ActionScript 3.0 to create a simple Drop Down Menu.

Some of the work has been done for you. I created a basic button for you. I want you to insert a new MovieClip and call it button_mc. in the time line I want you to create 2 new layers. Label the top layer "actions" the next layer "labels" and the last layer "buttons." You do not have to label layers for the movie to work but it is a good practice that I want to help get you in the habit of doing. Select the first Key Frame in the buttons layer and drag an instance of the dropDown_btn that I created for you, to the stage. Type the word "Links" or whatever you want to appear on the button when it is closed. Select the instance of dropDown_btn and label it links_btn.

Drop Down Menu

 


 


Drop Down label

 


 



Now go to frame 15 on the buttons layer and press F6. You just created a new key frame. Do the same for the other two layers. Return to the new key frame on the buttons line and drag 4 more instances of the dropDown_btn to the stage. Align them in a row one above the other. Then place some text over each button. *Hint- you can use the align panel to align the buttons, just don't align them to the stage. You should have something similar to the picture.



Now, we need to label some of the key frames so we can tell the time line were to stop. Click on the first Key frame on the labels layer and name the key frame close *Hint - you name a key frame same as you would name an object. Next, go to the new key frame on line 15 on the Labels Layer and name it "open". Your Time line should look something like the example. So Basically, you have set the stage. At the closed label you can see what the button will look like when it hasn't been clicked. At the open label you can see what the button will look like when the button has been clicked.

Now it is time for the ActionScript.
Click on the first key frame in the actions layer and press F9 to open the actions panel.

Now, we need to create a function to open the menu when the button is clicked. Copy and past the code into the actions panel below the stop(); line. We are creating a function called openMenu controlling it with a mouseEvent. Then when the function openMenu is called we are telling the time line to gotoAndStop("open") that means go to the frame you labeled as open, and stop playing. In the last line you are adding an Listener to the button you labeled as links_btn. The listener is a MouseEvent specifically a mouse CLICK. And Finally, when links_btn is clicked do the function openMenu.

stop();
function openMenu(yourEvent:MouseEvent):void {
this.gotoAndStop("open");
};
links_btn.addEventListener(MouseEvent.CLICK, openMenu);

Hopefully you are following all this because it is time for a lot more code. Select the next key frame on the actions layer, it should be above the key frame labeled open. Copy and past the following code. Before explaining this code you need to label each of the five instances of dropDown_btn

get the rest of the code at Drop Down Menu

Links to more Great Flash Tutorials 

FREE Flash CS3 Tutorials

Check out these great links to more FREE Flash Tutorials.
FrenchSquared
My home page and your destination fro great FREE Flash Tutorials
List of FREE Tutorials
Check out this great list of FREE Flash Tutorials
Flash Tutorial, Naming Basics
Before you can use an object in flash you have to name that object. This flash tutorial teaches you the basic steps to naming an object.
Flash Tutorial, Functions
Functions, what they are and how they work. This Flash Tutorials explains everything about using a function in flash.
Flash Tutorial, Loops
Flash tutorials covering loops, for loop, do loop and the while loop
F2-4Kids.com
Educational Games, Kids online coloring book, This is a website dedicated to the education of Children. It started as a project to help my children develop there computer skill and has turned into F2-4Kids.com

Flash Tutorials on Utube 

FREE Flash Tutorials

Check ouot a few more Great FREE Flash Tutorials
YouTube thumbnail
Adobe Flash Tutorial -- Basic ...

Runtime: 9:18 | 398150 views | Comments

YouTube thumbnail
KnowFlash.com - Create A Carto...

Runtime: 6:50 | 343778 views | Comments

YouTube thumbnail
Flash CS4 Tutorial: How To Mot...

Runtime: 5:17 | 43204 views | Comments

YouTube thumbnail
Scrolling Thumbnails w/ Mouse ...

Runtime: 30:35 | 262532 views | Comments

YouTube thumbnail
Photo Gallery and Thumbnails: ...

Runtime: 26:09 | 233125 views | Comments

YouTube thumbnail
Adobe Flash CS4 Tutorial- How ...

Runtime: 5:12 | 181067 views | Comments

automatically generated by YouTube"

RSS Feed of My favorite Flash Tutorials 

Flash CS3 Tutorils

Here is feed from my blog. It covers my faorite web sites and my current tutorials

Loading Fetching RSS feed... please stand by

IT Admin 

IT Admin is your home for anything computer related.

Loading Fetching RSS feed... please stand by

by FrenchSquared

Gordon French is a Flash Programmer and Flash Designer. Check out My site at
Gordon French
Flash Tutorials
F2-4Kids.com.com
IT Admin
CSS How To (more)

Explore related pages

Create a Lens!