I am attempting to use a custom cursor from a PNG file. I set the cursor to an embedded PNG file using CursorManager.setCursor(). However, when a right-click occurs and the context menu appears, the cursor disappears. I found this example on the web that demonstrates the issue:
Click on the show cursor button and then right click to show the context menu. This seems to be an issue with PNG files but not SWF files. Both examples in this Flex Quickstart article do not have this problem:
Is there a workaround?
Unfortunately you won't find a solution to this I suspect. In the DevNet example you are seeing the browser menu. In the Flex app you are seeing the Flash Player cursor. I don't think there is a way around this.
I was able to get around the issue in my project by adding a roll out event handler and using it to remove the custom cursor.