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

时间:2012-07-07 13:40:33

标签: actionscript-3

我正在尝试以下内容:

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

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

这样的事情可能吗?

1 个答案:

答案 0 :(得分:0)

您的代码应为:

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