////////////设置菜单不可见//////////////
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;
};
}
--------------------next---------------------
阅读(297) | 评论(0) | 转发(0) |