|
||||||||||||||||
. . . . . |
Flash 8 Drop Down MenusIn this very basic Flash 8 dropdown menu tutorial I am going to show you how to make a simple dropdown menu using a gotoAndStop command. The basic theory is that on frame 1 you have the top menu button only appearing. Then when you press this button the timeline goes to another frame and that is where the other submenu buttons are put under the top menu level. On this frame if you press the top menu button then you get sent back to frame 1 and the sub menu items disappear. It is very simple and you dont have to deal with making movieclips visible and a whole lot of hocus pocus. But be careful with this one because if you use loadMovie with it then the loaded movies will get loaded over the top of the drop down menu. You will have to think carefully about this. My sneaky little trick would be load the dropdown menu/navigation movie into a really high _level such as _level100.
Flash Tutorials in Video Format -
Watch them now at LearnFlash.com
Create a new Flash 8 doc 700x400.
Make a new keyframe(F6) on frame 10 of the buttons layer.
Create a new layer and call it "actions".
stop();
menu1_btn.onRelease = function(){
gotoAndStop(10); // go to frame 10
}
On frame 10 of the actions layer put the code for your submenu button items.
stop();
// send timeline back to frame 1
// and hide submenu items
menu1_btn.onRelease = function(){
gotoAndStop(1);
}
// submenu items actions
menu2_btn.onRelease = function(){
getURL("http://www.video-animation.com/", "_self");
}
menu3_btn.onRelease = function(){
getURL("http://www.blah.com/", "_self");
}
// etc etc
|
|
||||||||||||||
|
| Home | Flash MX | Actionscript 2.0 | Flash 3D | Flash 8 | Flash Database | Flash Mobile | Flash CS3 | Java For Kids | Video Course | General Video | Photoshop | Web Design | Digital Photography | Forum | Games | free backgrounds | Resume | Flash Animations | Streaming Video | Students Work | Links | Contact me | sitemap | reviews | store | advertisers | . . |
||||||||||||||||