Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-27-2009, 09:36 PM   #1
mgjacob1
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, 09:55 PM   #2
rondog
ActiveDen.net/user/rondog
 
rondog's Avatar
 
Join Date: May 2006
Location: San Diego
Posts: 579
Default

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, 10:01 PM   #3
MikeTheVike
Senior Member
 
Join Date: Dec 2007
Posts: 158
Default

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

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


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 02: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-12-2008 12:59 AM
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 09:26 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, 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.