Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-27-2009, 08:36 PM   #1
Registered User
Join Date: Apr 2009
Posts: 5
Default [AS3] need an exit button

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!
mgjacob1 is offline   Reply With Quote
Old 04-27-2009, 08:55 PM   #2
rondog's Avatar
Join Date: May 2006
Location: San Diego
Posts: 612

ActionScript Code:
import flash.system.fscommand; btn.addEventListener(MouseEvent.MOUSE_DOWN, closeApp); function closeApp(event:MouseEvent):void {     fscommand("quit"); }
My activeden portfolio
My website
rondog is offline   Reply With Quote
Old 04-27-2009, 09:01 PM   #3
Senior Member
Join Date: Dec 2007
Posts: 174

awesome, I didn't know about that either.
MikeTheVike is offline   Reply With Quote
Old 04-28-2010, 02:58 PM   #4
Registered User
Join Date: Apr 2010
Posts: 4

thanks for this!! mine worked
shathree is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
exit button kamfurz Projectors and CDs 33 09-19-2011 01:00 PM
Exit button in flash movie? bengstr Simple Stuff (Newbies) 10 11-16-2010 05:35 AM
[AS3] Skinning FLVPlayback - how to add a button? Arodicus Components 5 02-12-2009 05:04 PM
radio style button behavior eighteyes ActionScript 3.0 9 06-11-2008 11:59 PM
2 events with small button above a large button blob ActionScript 2.0 8 01-05-2005 06:26 AM

All times are GMT. The time now is 03:03 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.