作业帮 > 综合 > 作业

英语翻译laser_nodes = 1;btn.onRelease=function(){node = _root.at

来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/05/09 20:16:30
英语翻译
laser_nodes = 1;
btn.onRelease=function(){
node = _root.attachMovie("laser","laser_"+laser_nodes,laser_nodes,{_x:Math.random()*460+20,_y:Math.random()*310+20});
node.onPress = function() {
startDrag(this);
};
node.onRelease = function() {
stopDrag();
};
laser_nodes++;
}
_root.createEmptyMovieClip("ray",_root.getNextHighestDepth());
ray.onEnterFrame = function() {
this.clear();
this.lineStyle(3,0xff0000);
this.moveTo(_root.laser_1._x,_root.laser_1._y);
for (x=1; x
英语翻译laser_nodes = 1;btn.onRelease=function(){node = _root.at
看附件~~~~~~~

再问: 怎么不能拖动?
再答: 问题主问题解决了没有,如果解决了,请记得采纳,谢谢。