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

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -