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

How to resume from the current frame

Guest
Dec 03, 2015 Dec 03, 2015

Hi, everyone...

I have one Flash project and i'm totally newbie...

the first thing i want to build is exit button. when you click this button there will be a pop up that warn you to exit the application. if you click yes you will exit the app but if you click no, the app will continue from the last frame before you click the exit button.

so far, i made this code :

import flash.system.fscommand;

stop();

cncl.addEventListener(MouseEvent.MOUSE_DOWN, cncl); //No_button

function cncl(event:MouseEvent):void {

prevFrame(); // i don't if this right or wrong

ext.addEventListener(MouseEvent.MOUSE_DOWN, ext); //Yes_button

function ext(event:MouseEvent):void {

fscommand("quit");

}


So, basically i just want if you cancel to exit , you back into the app. Anyone, please your help...

TOPICS
ActionScript
416
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

LEGEND , Dec 03, 2015 Dec 03, 2015

prevFrame will move you back one frame on the timeline.   Based on the description of what you say you want, it sounds like you do not need to move anywhere along the timeline but just need to make the popup go away instead.

Translate
LEGEND ,
Dec 03, 2015 Dec 03, 2015

prevFrame will move you back one frame on the timeline.   Based on the description of what you say you want, it sounds like you do not need to move anywhere along the timeline but just need to make the popup go away instead.

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
Guest
Dec 03, 2015 Dec 03, 2015

How to make this pop up disappear?

Because i made another frame as this pop up, so, when i click the exit button it will bring to this pop up frame.

any suggestion for made pop up without make it in another frame?

Thank you,

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
LEGEND ,
Dec 03, 2015 Dec 03, 2015

Instead of having it in a particular frame, have it on a layer that extends the length of where you would like it to be able to appear and create it as a movieclip and control its visible property.

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
Guest
Dec 03, 2015 Dec 03, 2015

Ned!!! Thank you !!! Thank you very much

I follow your instruction and it work as what i want. once again, Thank you because you give me another perspective to make this one

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
LEGEND ,
Dec 03, 2015 Dec 03, 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