简体   繁体   中英

Custom cursor and customized context menu in Flex

My Flex 3 application uses a custom cursor and has to show a customized context menu when the user performs a right click. The problem is the customized menu is shown only when the default arrow cursor is shown. When I change it to the custom cursor, the standard context menu appears instead of the customized one.

Is there a way to have both custom cursor and customized context menu in a flash application?

这是一个已知的错误: http : //bugs.adobe.com/jira/browse/SDK-26552

The customized context menu will appear as long as the custom cursor doesn't cover mouse's hot spot. In other words, the graphic for the custom cursor should be displayed at 1 pixel offset (at least) from (0, 0) point of the original mouse pointer.

Do not use CursorManager for showing the custom cursor. Hide the default mouse pointer and draw a cursor manually instead. I've posted detailed steps in this response .

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