Created
July 26, 2011 09:55
-
-
Save peterblazejewicz/1106408 to your computer and use it in GitHub Desktop.
quit application feature script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function exitButtonClickHandler(event:MouseEvent):void | |
{ | |
// do runtime check for presence of "filename" | |
if(mdm.Application && mdm.Application.filename.length) | |
{ | |
mdm.Application.exit(); | |
} else | |
{ | |
flash.system.fscommand("quit"); | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment