How to resume from the current frame
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...
