我正在尝试下面这样的方法:
shape1.canvas1.addEventListener(MouseEvent.MOUSE_MOVE, paintLine);至
this["shape"+i].canvas[i].addEventListener(MouseEvent.MOUSE_MOVE, paintLine);这样的事情有可能发生吗?
发布于 2012-07-07 22:55:31
你的代码应该是:
this["shape"+i]["canvas"+j].addEventListener(MouseEvent.MOUSE_MOVE, paintLine);
// or ["canvas"+i] https://stackoverflow.com/questions/11375496
复制相似问题