帮忙解释一下这些AS代码

来源:百度知道 编辑:UC知道 时间:2024/06/02 22:28:49
看不懂呀!!!
第一段::

startDrag(_root.mouseSpy, true, 0, 0, 712, 617);
Mouse.hide();
_global.ifPower = 0;
_root.actMask.onPress = function() {
_global.ifPower = 1;
};
_root.actMask.onRelease = function() {
_global.ifPower = 2;
};

第二段:

onClipEvent (load) {
this._visible = 0;
_root.fireBoss._visible = 0;
n = 0;
}
onClipEvent (enterFrame) {
if (_global.ifPower == 1) {
duplicateMovieClip(_root.fireBoss, "smaFire"+n, n);
_root["smaFire"+n]._x = Math.random()*712;
_root["smaFire"+n]._y = Math.random()*617;
_root["smaFire"+n]._width = Math.random()*10+5;
_root["smaFire"+n]._height = _root["smaFire"+n]._width;
if (n<=25) {
n++;
} else {
n = 0;
}
}
}

第三段:

onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_

拖动舞台上一个叫mouseSpy的元件,中心拖动,而且还设置了拖动的范围。
下一句 把你的鼠标的指针给隐藏了。下面一些乱七八糟的写在MC上的。没耐心看下去了。