I'm displaying an image in a titleWindow(as a popup). Now, i'm listening events on the image if the user clicks on the image then i display a popup at the corresponding position, but every time i click the flex is giving me coordinates which is not where i clicked, it is giving me the coords(localx, localY) further towards the right. Is there a better way to handle the events on the Image? Or is it a bug in adobe?
P.S i'm listening to the click events on the titleWindow nt on the image, but the result shoud be the same.
Try with the values of image.mouseX and image.mouseY
LocalX/Y is relative to event.target so see what the event.target is. You
can use localToGlobal and globalToLocal to convert to any other objects'