Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Quit button?

New Here ,
Sep 08, 2015 Sep 08, 2015

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?

TOPICS
ActionScript
544
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 09, 2015 Sep 09, 2015

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).

Translate
Community Expert ,
Sep 08, 2015 Sep 08, 2015

is this a non-ios air app?

if so, use the nativeapplication exit() method.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 09, 2015 Sep 09, 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 😕

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 09, 2015 Sep 09, 2015

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 09, 2015 Sep 09, 2015

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 09, 2015 Sep 09, 2015

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).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 09, 2015 Sep 09, 2015

Thanks! I just thought there was no difference between all the things (besides the mobile stuff). Thanks for all the help, and sorry I'm a n00b lol

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 09, 2015 Sep 09, 2015
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines