} else {
this._y += -this.yinc*this.inc;
}
}
} else {
this._x += this.xinc*this.inc;
}
if (this._x == _root.zhujue1._x && this._y == _root.zhujue1._y) {
removeMovieClip(this);
}
};
}
if (a == 2) {
var zd_teshu = _root.attachMovie("zhujue01_teshu_"+a, "zhujue01_teshu"+_root.picDepth, _root.picDepth++);
//将加载的子弹添加到数组中
zhujue01_teshu_Array.push(zd_teshu);
zd_teshu._x = _root.zhujue1._x+30;
zd_teshu._y = _root.zhujue1._y;
//zd._rotation=arg
//弧度=角度/180*Math.PI
arg = arg/180*Math.PI;
zd_teshu.xinc = Math.cos(arg)*speed;
zd_teshu.yinc = Math.sin(arg)*speed;
zd_teshu.onEnterFrame = function() {
this._x += this.xinc;
this._y += this.yinc;
if (this._x<0 || this._x>700 || this._y<0 || this._y>400) {
removeMovieClip(this);
}
};
}
if (a == 3) {
var zd_teshu = _root.attachMovie("zhujue01_teshu_"+a, "zhujue01_teshu3", _root.picDepth++);
zd_teshu._x = _root.zhujue1._x+30;
zd_teshu._y = _root.zhujue1._y;
zd_teshu.onEnterFrame = function() {
this._x += speed;
if (this._x<0 || this._x>700 || this._y<0 || this._y>400) {
teshu_3_fashe = false; Flash射击游戏设计+需求分析(18):http://www.youerw.com/jisuanji/lunwen_464.html