package com.avila.events { import flash.events.Event; /** * Broadcast when a defined combination of keys has been pressed. * * @author Michael Avila */ public class KeyComboEvent extends Event { public static const KEY_COMBO:String = "keycombo"; // The name of the combination which triggered this event private var _comboName:String; public function get comboName():String { return _comboName; } // The key codes, in their proper order, of the combination that triggered this event private var _keyCodes:Array; public function get keyCodes():Array { return _keyCodes.slice( 0 ) } public function KeyComboEvent( type:String, comboName:String, keyCodes:Array, bubbles:Boolean=false, cancelable:Boolean=false ) { super( type, bubbles, cancelable ); _comboName = comboName; _keyCodes = keyCodes; } } }