Skip to main content
Participant
September 8, 2015
Answered

Quit button?

  • September 8, 2015
  • 1 reply
  • 603 views

I'm making a quiz game in Flash CS5.5, and I don't know how to make a quit button.

I already know how to make a menu button, but I can't find an option for exiting the program.

Can anyone help?

This topic has been closed for replies.
Correct answer kglad

Oh okay so I switch from flash player to air 2.5 or 2.6?


first you decide what kind of app your making.  then you can determine what you can and can't do.

if you're making an app that your users will install on their computers, then yes, use an air app and the code i suggested.

if you're making an online app, you can't create a button that will close a web-page (unless that page is a popup created using javascript).

1 reply

kglad
Community Expert
Community Expert
September 8, 2015

is this a non-ios air app?

if so, use the nativeapplication exit() method.

ChuckderpAuthor
Participant
September 9, 2015

I tried to use that, but I guess I did it wrong? It's a non-ios app/program, and I tried to do the native application method but it made my game have an error, and it just flashed through the program and never stopped :/

kglad
Community Expert
Community Expert
September 9, 2015

then you're probably not making a non-ios air app.