Global Mouse Down Sensor
package { import flash.display.*; import flash.events.*; public class Main extends Sprite { public function Main ( ) { stage.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownListener); } private function mouseDownListener (e:MouseEvent):void { trace("The primary mouse button was pressed."); } } }