简体   繁体   中英

Adobe AIR, Flex 4 - ContextMenu on right click not showing

I'm pretty sure my code is OK as the Context Menu shows nicely when I compile for web, but when I compile for AIR nothing shows up. Any ideas?

I just figured it out. In AIR you have to call ContextMenu.display() explicitly. For example on DataGrid.rightClick. Then use event.stageX and event.stageY to position it.

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