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.
Retrieving data ...