View Full Version : [AS3] need an exit button
mgjacob1
04-27-2009, 09:36 PM
I have built a program that will be an exe and have made a button called "mm_exit.btn", but can't seem to figure out the right actionscript to make it work (I am a complete novice!) HELP!
rondog
04-27-2009, 09:55 PM
import flash.system.fscommand;
btn.addEventListener(MouseEvent.MOUSE_DOWN, closeApp);
function closeApp(event:MouseEvent):void
{
fscommand("quit");
}
MikeTheVike
04-27-2009, 10:01 PM
awesome, I didn't know about that either.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.