简体   繁体   中英

Right click position in Flex

I create my own context menu inside a Canvas when the user right click, but I need to know the (x,y) coordinates in the stage.

I'm trying mouseX and mouseY , but is not working as I expected, returning coordinates of the last click (even inside a menu option), not where I clicked to show the context menu.

Is there any way to get mouse position from right click in Flex?

Flash prevents you from accessing the right click event.

However, you can use some javascript hacking to work around this issue. You will find several example on the web, and i successfully used this one .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM