Mouse Event Object Properties
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> <mx:Script> private function clickHandler(event:MouseEvent):void { myLabel.text="The " + event.type + " event was dispatched by " + event.target.id; altLabel.text="Alt key pressed: " + event.altKey; ctrlLabel.text="Ctrl key pressed: " + event.ctrlKey; shiftLabel.text="Shift key pressed: " + event.shiftKey; } </mx:Script> <mx:Label id="myLabel"/> <mx:Label id="altLabel"/> <mx:Label id="ctrlLabel"/> <mx:Label id="shiftLabel"/> <mx:Button label="Click Me" click="clickHandler(event)"/> </mx:Application>