actionscript 3 - shape1.canvas1.addEventListener(MouseEvent.MOUSE_MOVE, paintLine) -


i'm trying below:

shape1.canvas1.addeventlistener(mouseevent.mouse_move, paintline); 

to

this["shape"+i].canvas[i].addeventlistener(mouseevent.mouse_move, paintline); 

is possible?

your code should be:

this["shape"+i]["canvas"+j].addeventlistener(mouseevent.mouse_move, paintline); // or ["canvas"+i] 

Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -