Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public var OperatingSystem:String = !!NativeApplication.supportsDockIcon ?
- 'mac' :
- !!NativeApplication.supportsSystemTrayIcon ?
- 'win' :
- 'other';
- stage.addEventListener('keyDown', function(e:KeyboardEvent):void {
- if(e[(OperatingSystem == 'mac' ? 'commandKey' : 'ctrlKey')]) {
- e.preventDefault();
- }
- });
Add Comment
Please, Sign In to add comment