views:

21

answers:

1

Let's say that you're using some black box library (i.e. no source code) that sets your cursor to something when rolling over a certain sprite. You can override that by catching rollOver and rollOut events, blocking propagation and using the CursorManager.

Question: is there a way to tell the CursorManager to use the system cursor?

Obviously, I could feed the CursorManager some "system like" cursor, but this would look weird if the local settings are different from that icon, which is likely to be always.

thank you!

f

A: 

You can create your own version of CursorManager - just create file mx/managers/CursorManager.as, copy it's content from default manager (use Ctrl+Shift+T to navigate to it) and change the code.

If you use RSLs then you need to create monkey-patch and load it BEFORE RSLs.

if you embed SDK into code then you can simply compile the app and class will be replaced.

Maxim Kachurovskiy
Maxim - thanks for the help. Will try it out!
fred august