In an online mapping application I’m doing in Flex 3 I need a cursor for certain operations that has XOR coloring with the background.
i.e. it is always the “negative” color of whatever pixels it stands above off (white on black, red on green, etc.).
Can this be done with Flex? (Can I roll my own programmatic cursor?)
Take a look at displayObject.blendMode property: http://livedocs.adobe.com/flex/3/langref/flash/display/BlendMode.html#INVERT
Use a custom cursor with that property set to BlendMode.INVERT
Update:
here is the solution
Cursor class:
Usage: