0 Replies Latest reply on Jan 18, 2011 2:20 AM by Starlover_jacob

    fire event after drop

    Starlover_jacob Level 1

      Hi there,


      I have a list of images and a dropcanvas.

      I can drag the image from the list onto the dropcanvas.


      The item I drop has the following event listeners.




      If the image is dropped onto the dropcanvas i want to fire the event of the dropped item.


      I tried something like this:

      var result1:Boolean = img.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_DOWN, true, false));
      var result2:Boolean = img.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_UP, true, false));


      But it doesn't fire.


      When the image is dropped on the canvas, and i drag it around inside that canvas and drop it again, the mouseup and mousedown events do fire.

      Its just the first time i drop the item onto the canvas.


      Please some help.

      Greets, J.