|

- 帖子
- 1195
- 积分
- 290
- 技术分
- 60
- 来自
- 湖北荆州
- 在线时间
- 827 小时
- 注册时间
- 2005-3-26
|
5#
发表于 2007-10-21 21:27
| 只看该作者
有人问画任意线又怎么画
只需将代码改为
this.createEmptyMovieClip("huaxian_mc", this.getNextHighestDepth());
starthua._visible = 1;
stophua._visible = 0;
starthua.onRelease = function() {
stophua._visible = 1;
this._visible = 0;
huaxian_mc.onMouseDown = function() {
this.lineStyle(2, 0xFF0000);
this.moveTo(_xmouse, _ymouse);
hua = true;
};
huaxian_mc.onMouseMove = function() {
if (hua == true) {
this.lineTo(_xmouse, _ymouse);
updateAfterEvent();
}
};
huaxian_mc.onMouseUp = function() {
hua = false;
};
};
stophua.onRelease = function() {
this._visible = 0;
starthua._visible = 1;
delete huaxian_mc.onMouseDown;
};
clearxian.onRelease = function() {
huaxian_mc.clear();
};
[ 本帖最后由 qinz 于 2007-10-21 21:31 编辑 ] |
|
我的博客http://space.flash8.net/space/?401869 |
|