Handling Mouse Events "Globally"
package { import flash.display.*; import flash.events.*; public class Main extends Sprite { public function Main( ) { stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveListener); } private function mouseMoveListener (e:MouseEvent):void { trace("The mouse moved."); } } }