Question
createJS - move obj along with mouse
Hi,
I'm new to createJS.
I tried an object to move along with mouse on stage. I have a movieclip with the instance name of "mc1" and have given the below code on the frame.
stage.addEventListener("stagemousemove", function(evt) {
this.mc1.x = evt.stageX;
this.mc1.y = evt.stageY;
});
Nothing happening in the browser when I move mouse on the stage. When I try to alert(this.mc1), it says "undefined"
Please help me how to make it works.
Thanks,
Guru
