Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 形状1.canvas1.addEventListener(MouseEvent.MOUSE\u MOVE,paintLine)_Actionscript 3 - Fatal编程技术网

Actionscript 3 形状1.canvas1.addEventListener(MouseEvent.MOUSE\u MOVE,paintLine)

Actionscript 3 形状1.canvas1.addEventListener(MouseEvent.MOUSE\u MOVE,paintLine),actionscript-3,Actionscript 3,我正在尝试以下方法: shape1.canvas1.addEventListener(MouseEvent.MOUSE_MOVE, paintLine); 到 这样做可能吗?您的代码应该是: this["shape"+i]["canvas"+j].addEventListener(MouseEvent.MOUSE_MOVE, paintLine); // or ["canvas"+i] 如果有帮助,请接受答案,结束问题。 this["shape"+i]["canvas"

我正在尝试以下方法:

shape1.canvas1.addEventListener(MouseEvent.MOUSE_MOVE, paintLine);

这样做可能吗?

您的代码应该是:

this["shape"+i]["canvas"+j].addEventListener(MouseEvent.MOUSE_MOVE, paintLine);
         // or ["canvas"+i]  

如果有帮助,请接受答案,结束问题。
this["shape"+i]["canvas"+j].addEventListener(MouseEvent.MOUSE_MOVE, paintLine);
         // or ["canvas"+i]