[
效果]
[源
文件]
WINDOWS开始菜单.rar[步骤]
具体过程看源文件,这是写在第一帧上的代码:
////////////设置菜单不可见//////////////
cd_mc._visible = 0;
////////////“开始”按钮////////////////////
ks_btn.onPress = function() {
if (cd_mc._visible == 0) {
cd_mc._visible = 1;
} else {
cd_mc._visible = 0;
}
};
/////////////在子菜单外按鼠标////////////////
btny_mc.useHandCursor = false;
btny_mc.onPress = function() {
cd_mc._visible = 0;
};
/////////////子菜单名与坐标及指示效果////////////////////
cd_mc.zs_mc._visible = 0;
var cd_array:Array = ["动画制作", "图形设计", "在线音乐", "原创教程", "随笔文章", "家庭影集", "给我留言"];
for (i=cd_array.length; i>0; i--) {
cd_mc.zcd_mc.duplicateMovieClip("zcd_mc"+i, i);
this.cd_mc["zcd_mc"+i]._y = -24*(i-1);
this.cd_mc["zcd_mc"+i]._txt.text = cd_array[i-1];
this.cd_mc["zcd_mc"+i].onRollOver = function() {
cd_mc.zs_mc._visible = 1;
cd_mc.zs_mc._y = this._y;
this._txt.textColor = 0xFFFFFF;
};
this.cd_mc["zcd_mc"+i].onRollOut = function() {
cd_mc.zs_mc._visible = 0;
this._txt.textColor = 0x000000;
};
this.cd_mc["zcd_mc"+i].onRelease = function() {
cd_mc._visible = 0;
};
}
进入论坛和作者讨论学习:
http://space.flash8.net/bbs/thread-360517-1-2.html 作者个人空间:
http://space.flash8.net/space/html/69/401869.html