Pure laziness. I'm trying to get the mouse loc outside of the Flash window, using a Flash-only solution. I do this using an undocumented side-effect of the way JavaScript and ExternalInterface.call() work together, namely that you can pack an entire function into the outbound message, and not just a javascript function name:
Code:
// Assumes you have a button called "testBtn" and a dynamic field called "testField"
import flash.external.ExternalInterface;
testBtn.onRelease = function() {
var flashObjectName:String = "MySwf";
var methodName:String = "ReportMouseLoc";
var instance:Object = null;
var method:Function = ExternalMouseLoc;
var wasSuccessful:Boolean = ExternalInterface.addCallback(methodName, instance, method);
function ExternalMouseLoc(MouseX, MouseY) {
testField.text = MouseX+":"+MouseY;
}
var nullCall = ExternalInterface.call("function(){document.onmousemove = function(){var e = arguments[0] || event;window['"+flashObjectName+"'].ReportMouseLoc(e.clientX,e.clientY )}}");
};

It's my cool script of the day; that little overstuffed javascript tells IE to start force-feeding the mouseloc back to the ExternalMouseLoc function when the mouse is outside the swf. The amazing thing is that the function actually persists after the call() is made, even though there's no supporting code in the HTML document. It works great considering that everyone's told me it's impossible.
(I think AS3 has a better way of doing this, but this method works in AS8/Flash8, too.)
THE CATCH is I that I need to explicitly pass in the swf's Object ID like you see in the very first line so that the callback function can find it. So if the ID(s) of the movie isn't exactly "MySwf" as above, it won't be able to send the callback message.
Hence my question; if there was a way to get the ID as the browser sees it, I could universalize the script, and turn it into a proper AS2 class.
FOR THOSE TRYING THE SCRIPT AT HOME:
1) If you are testing, make sure you set allowScriptAccess in both the OBJECT and in the EMBED to "always" so it will run from your desktop; Flash's default settings of "samedomain" won't run locally. Beat my head against a wall for two hours over that one!
2) It will work in IE 6+, but probably not in any others, since the overtuffed JS function has been trimmed down to see if it's even possible. Once I get a demo going, I'll post a better version of it.