|
||||||
|
||||||
Flash Tutorial MX 2004 - Drop-down Menu
Free
Flash Tutorial
Step Two: Creating a Symbol to Contain the Menu - Menu Button - Frame 1
It is best to have the menu inside a symbol, as it makes the menu much more flexible. Then you can have the menu on stage and move from frame to frame within the movie and the menu stays intact. You can also copy and paste the menu to a completely different movie and reuse it. If you build the menu on the main stage you have to re-build it for every new frame that you wish to use it in.
- Go to: Insert > New Symbol
- Type the name: Menu
- Click: OK
- For behavior select: Movie Clip
- If your Library is not open, open it: Window > Library
- Drag onto the stage: My button
- In Property Inspector position the button at X: 0
- In Property Inspector position the button at Y: 0
- With the text tool
, type on top of My Button: Menu
- Open the Actions panel (Window > Actions) and attach the following actionscript to : My Button
on (release) {
gotoAndStop(2);
}
Note: Make sure you select gotoAndStop(2) not gotoAndPlay(2)
- Attach the following actionscript to: frame 1
stop();
Frame 1 of the Menu symbol
|
Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates
•
221071 visitors to this page since Jan 04 |
|
|
All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.
|