课件注释
- createEmptyMovieClip("line", 1);
- with (line) {
- onMouseDown = function () {
-
- draw = true;
- lineStyle(1, random(0xFFFFFF),100);
-
- moveTo(_root._xmouse, _root._ymouse);
- };
- onMouseMove = function () {
- if (draw) {
- lineTo(_root._xmouse, _root._ymouse);
- }
-
- updateAfterEvent();
- };
- onMouseUp = function () {
- draw = false;
- };
- }
复制代码
|