在实际的制作中我们经常会遇到弹出式菜单的制作过程!下面笨笨熊就弹出菜单的制作举个例子以帮助大家理解!
1:分别创建三个菜单内容的动画文件content1.swf,content2.swf content3.swf,具体可自己设定。
2:在FLASH中新建一文件。
3:分别创建4个按钮符号,button button1,button2,button3,依次标示为主菜单,第一个菜单项,第二个菜单项,第三个菜单项。 按钮的UP/OVER可适当的变换一下颜色。
4:新建一名字为popupmetu的动画剪辑符号,1桢设定ACTION/ADD GO TO AND STOP(1)。
5:拖拽button到popupmetu中,双击它,在“tracking options”中 选track as metu item,ACTION:on(release) go to and stop (2) end on
6:2桢处依次将button1-3拖入场景,并且排列整齐。分别设定以下动作:
button1:
on(release) load movie("content1.swf",1) go to and stop(1) end on
button2:
on(release) load movie("content2.swf",1) go to and stop(1) end on
button3:
on(release) load movie("content3.swf",1) go to and stop(1) end on
7:新建一buttonx按钮对象,hit桢处,绘制矩形(稍大于展开菜单)。
8:回到popupmetu中,新建一层命名为control,拖入buttonx, 放于展开菜单下,buttonx动作为: on(rollout) go to and stop (1) end on . 当鼠标滑出菜单选项时会,自动恢复。
9:将popupmetu拖入场景中,
10:control-test movie预览动画效果。