Revision: 26541
Updated Code
at April 30, 2010 09:06 by kmallea
Updated Code
stage.addEventListener(KeyboardEvent.KEY_DOWN, hiddenKeysDown_handler); stage.addEventListener(KeyboardEvent.KEY_UP, hiddenKeysUp_handler); //Key Handlers private function hiddenKeysDown_handler(e:KeyboardEvent):void{ if (e.ctrlKey && e.shiftKey && e.altKey) { // do something } } private function hiddenKeysUp_handler(e:KeyboardEvent):void{ //stop doing something }
Revision: 26540
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 30, 2010 09:04 by kmallea
Initial Code
stage.addEventListener(KeyboardEvent.KEY_DOWN, hiddenKeysDown_handler); stage.addEventListener(KeyboardEvent.KEY_UP, hiddenKeysUp_handler); //Key Handlers private function hiddenKeysDown_handler(e:KeyboardEvent):void { if (e.ctrlKey && e.shiftKey && e.altKey) { for (var i:int = 0; i < HotSpotSets.length; i++) { for (var j:int = 0; j < HotSpotSets[i].length; j++) { HotSpotSets[i][j].showHotSpots(true); } } } } private function hiddenKeysUp_handler(e:KeyboardEvent):void { for (var i:int = 0; i < HotSpotSets.length; i++) { for (var j:int = 0; j < HotSpotSets[i].length; j++) { HotSpotSets[i][j].showHotSpots(false); } } }
Initial URL
Key Handlers
Initial Description
Key handlers for ctrl alt combos
Initial Title
Key handlers (ctrl alt combos)
Initial Tags
Initial Language
ActionScript 3