//辑宏皋春傅农
//霉 沫篮 "", 捞犯霸 厚况滴技夸.
submenu = new Array();
submenu[1] = ["", "#", "#", "#"];
submenu[2] = ["", "#", "#", "#"];
submenu[3] = ["", "#", "#", "#"];
submenu[4] = ["", "#", "#", "#"];
submenu[5] = ["", "#", "#", "#"];
submenu[6] = ["", "#", "#", "#"];
//-----------------------------------------------------------------------------------------------------------------
_root.xnum = 0;
for (i=1; i<=6; i++) {
_root["m"+i].snum = i;
_root["m"+i].snum2 = i-1;
_root["m"+i].mb.useHandCursor = false;
_root["m"+i].mb.onRollOver = function() {
_root.xnum = this._parent.snum;
};
_root["m"+i].mb.onRollOut = function() {
_root.xnum = 0;
};
_root["m"+i].onEnterFrame = function() {
if (_root.xnum == 0) {
this._x = this._x-(this._x-(100*this.snum2))*0.1;
} else {
if (_root.xnum<this.snum) {
this._x = this._x-(this._x-(60*this.snum2+240))*0.1;
} else {
this._x = this._x-(this._x-(60*this.snum2))*0.1;
}
}
if (_root.xnum == this.snum) {
this.sm._alpha = this.sm._alpha-(this.sm._alpha-100)*0.03;
this.mt._xscale = this.mt._xscale-(this.mt._xscale-160)*0.1;
this.mt._yscale = this.mt._yscale-(this.mt._yscale-160)*0.1;
} else {
this.sm._alpha = this.sm._alpha-(this.sm._alpha-(0))*0.1;
this.mt._xscale = this.mt._xscale-(this.mt._xscale-100)*0.1;
this.mt._yscale = this.mt._yscale-(this.mt._yscale-100)*0.1;
}
};
for (j=1; j<=3; j++) {
_root["m"+i].sm["bt"+j].smnum = j;
_root["m"+i].sm["bt"+j].onRollOver = function() {
_root.xnum = this._parent._parent.snum;
};
_root["m"+i].sm["bt"+j].onRollOut = function() {
_root.xnum = 0
};
_root["m"+i].sm["bt"+j].onRelease = function() {
getURL(_root.submenu[this._parent._parent.snum][this.smnum]);
};
}
}
您能不能帮我解释下这下flash as代码,谢谢!!
答案:2 悬赏:0 手机版
解决时间 2021-04-28 22:08
- 提问者网友:杀生予夺
- 2021-04-28 00:50
最佳答案
- 五星知识达人网友:春色三分
- 2021-04-28 02:24
这个是 个 导航的 代码。。。。
建议按F1 去看关键字把。。。基础代码呀
全部回答
- 1楼网友:毛毛
- 2021-04-28 03:02
开始时定义一个数组·
声明变量xnum为零
再来一个6次的循环···这样说吧·for()是循环的意识
function()是函数的意识·
里面其它的全是些基础的相信你也看得懂吧?说得有些笼统了··不好意思啊·
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯