Dynamic Flash Menu
This tutorial will show you how to make a dynamic flash menu. Dynamic flash menus are great when you want to maintain a single flash file while having multiple menus on different pages. Also, you can watch this dynamic flash menu tutorial. In this tutorial, this is the menu that we’re going to create:
Download the source file .fla here
The way we did this, is create a movieclip, then inside of the movie clip, we made a tween that we wanted to occur when we roll over the menu button. then we gave it an instance name “b” then we wrote this code:
buttons=”More Info, Click here, Candyland, Contact us, Whatever you want”;
buttons=buttons.split(”, “);function btn(mc){
mc.onRollOver=function(){
mc.onEnterFrame=function(){
mc.nextFrame();
mc.nextFrame();
}
}
mc.onRollOut=function(){
mc.onEnterFrame=function(){
mc.prevFrame();
}
}
}i=0;
while(buttons[i]!=null && buttons[i]!=”"){
duplicateMovieClip(b, “b”+i, i);
this[”b”+i]._y=(b._height-1)*i;
this[”b”+i].txt=buttons[i];
this[”b”+i].onEnterFrame=btn(this[”b”+i]);
this[”b”+(i-1)].corner._visible=false;
i++;
}
b._visible=false;
now we have our animated menu.