Detect actual mouse position after quick motion?

Hi. Sorry for the verbose explanation, but this is not a simple question.

Basically, I am replacing the mouse pointer with a custom graphic in an .swf that takes up part of a web page (.swf stage is about 350px wide, total layout is about 1000px). My code is all working fine, except that, if you move the mouse fairly quickly – as you might do to get from a point on the .swf to the opposite side of a large monitor – the .swf loses track of the mouse, and thinks that the ._xmouse/._ymouse values are still the same as the last point that that Flash saw the mouse, which is usually somewhere in the middle of the stage, thus “orphaning” the custom cursor. If I have a setInterval or something tracing the mouse position, the .swf still thinks that the mouse is sitting on top of it, even though the cursor is actually far away somewhere else. hitTest also still returns true as though the mouse was there (as you might expect, given that it’s based on _xmouse/_ymouse).

The workaround/hack I have going now is that, once the pointer switches over to the custom cursor, it starts a setInterval, and then if the mouse appears not to move for a few seconds, it reverts back to the default cursor (i.e., Mouse.show). Obviously, this is not optimal, because that means that the custom cursor disappears if you don’t move the mouse for a second or two, and it doesn’t really solve the problem anyway because it still looks like the custom cursor gets stuck for a second when you move too fast.

The funny thing is that, somewhere out there, either Flash, the OS, or the browser knows that the cursor isn’t actually on top of the stage, because when the setInterval reverts it to the regular cursor, the regular cursor doesn’t reappear on top of the Flash movie. Somebody in the system knows where the cursor is “for real”, but Flash is not receiving this information.

So my question is whether someone knows of a way to communicate the actual location of the mouse (or its presence on top of some other page object, like a background div or something) to the .swf via ExternalInterface or something, to tell it that, despite what it thinks, the mouse is actually somewhere else? Is there some kind of focus event for the stage or Flash player instance that would work for this? Is there a JavaScript hack that someone has used? I’m thinking maybe the div that takes up the rest of the layout can have some kind of rollOver detection which calls a js function to, in turn, call an as function in the original clip, but my javascript is kinda weak and I don’t know of a good way to do this.

Any help will be greatly appreciated.

Mike