道重沙由美迅雷:帮忙解释这个flah代码

来源:百度文库 编辑:中科新闻网 时间:2024/05/06 00:22:53
Active_x = 0;
Status_x = 0;

_root.onState= false;

targety=-150;
Active_a= 1;
xacc=5;
img_2.onEnterFrame=function(){
startx = note._x;
acc = targety-startx;
note._x=startx+(acc/xacc);
}

_root.btn_1.onRollOver = function(){
targety=70;
if(!_root.onState || _root.Active_x != 1) {
_root.mn_1.gotoAndPlay("start");
_root["mn_"+_root.Active_x].gotoAndPlay("end");
_root.Active_x = 1;
_root.onState = true;
}
};
_root.btn_2.onRollOver = function(){
targety=157;
if(!_root.onState || _root.Active_x != 2) {
_root.mn_2.gotoAndPlay("start");
_root["mn_"+_root.Active_x].gotoAndPlay("end");
_root.Active_x = 2;
_root.onState = true;
}
};

_root.btn_1.onRelease = function(){
getURL("#");
}
_root.btn_2.onRelease = function(){
getURL("#");
}

要详细的!!!!!!!!!!!!!!超级详细