View Full Version : External SWF as cursor 'gets in the way'

08-10-2006, 03:07 PM
I noticed behavior that didn't exist in AS2 that now happens in AS3: When you use an externally loaded SWF to replace the mouse cursor, the loaded movie prevents the hit area from triggering if the movie is directly below the cursor.

I noticed this when trying to load an swf with animation. My buttons would return to the upState as the animation moved below the cursor, and again go back to the overStage as the animation moved out of the way.

Attached is a class that replaces the cursor. It includes a button on the stage and an animated externally loaded cursor. I left the real mouse pointer visible to demonstrate the "on-off" switching.

Is there any way to keep the button active when the mouse movie is below the cursor?

08-10-2006, 03:40 PM
this is a wild stab in te dark but have u tried setting the mouseEnabled prop in the external SWF to false?

08-11-2006, 02:52 AM
That worked!

Thanks Tink