发新话题
打印

[求救] 怎么让AS画的线在最上的图层?

怎么让AS画的线在最上的图层?

AS画线问题?画的线怎么能画到舞台图形上面?怎么能让线条永远在最上层????????????????????????非常感谢,文件如下.

附件

画线.fla (14.5 KB)

2008-5-3 16:33, 下载次数: 29

画线.swf (987 Bytes)

2008-5-3 16:33, 下载次数: 24

TOP

复制内容到剪贴板
代码:
stop();
_root.createEmptyMovieClip("xian",1);
_root.onMouseMove = function() {
        if (draw) {
                _root.xian.lineStyle(5,0xFF0000,100);
                _root.xian.lineTo(_root._xmouse,_root._ymouse);
        }
};
_root.onMouseDown = function() {
        draw = true;
        _root.xian.moveTo(_root._xmouse,_root._ymouse);
};
_root.onMouseUp = function() {
        draw = false;
};

TOP

stop();
this.createEmptyMovieClip("xian", 1);
onMouseMove = function () {
if (draw) {
  this.xian.lineStyle(5, 0xFF0000, 100);
  this.xian.lineTo(this.xian._xmouse, this.xian._ymouse);
}
};
onMouseDown = function () {
draw = true;
this.xian.moveTo(this.xian._xmouse, this.xian._ymouse);
};
onMouseUp = function () {
draw = false;
};
画线.fla (32 KB) 画线.swf (862 Bytes)
要用flash8打开

TOP

发新话题