0 Replies Latest reply on Jan 16, 2008 2:35 PM by r08

    Extended Canvas, Event Listener - drag enter

      I'm trying to add an eventListener to my extended Canvas Class but seem to be having a slight problem.

      I've created a loop which runs 16 times, adds an instance of the canvas to a container and sets an drag enter event listener for each one, however when i drag over only one of the canvas' reacts to the drag enter (the last instance) - regardless of where i drag the object.

      heres some example code

      for(var i = 0; i < 16;i++)
      var foo:extendedCanvasObj = new extendedCanvasObj();


      foo.addEventListener(dragEvent.DRAG_ENTER,function(event:DragEvent){ change the canvas backgroundcolour };