3 Replies - 2252 Views - Last Post: 12 December 2012 - 07:34 AM

#1 its_me  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 12-December 12

question

Posted 12 December 2012 - 05:39 AM

can anyone help me.. how to create an exit button in flash AS2. when user click the button it will poup "yes or no" if yes the appplication will close if no it will stay on that page..
Is This A Good Question/Topic? 0
  • +

Replies To: question

#2 BenignDesign  Icon User is offline

  • holy shitin shishkebobs
  • member icon




Reputation: 6178
  • View blog
  • Posts: 10,674
  • Joined: 28-September 07

Re: question

Posted 12 December 2012 - 05:43 AM

What have you tried so far?

Spoiler

Was This Post Helpful? 0
  • +
  • -

#3 its_me  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 12-December 12

Re: question

Posted 12 December 2012 - 05:51 AM

i'm done doing the button using this code :

on (press) {
fscommand("quit");
}

but it's automatickly close the application... and now i have no idea how to make the poup..
any tutorial that i can refer??
Was This Post Helpful? 0
  • +
  • -

#4 BenignDesign  Icon User is offline

  • holy shitin shishkebobs
  • member icon




Reputation: 6178
  • View blog
  • Posts: 10,674
  • Joined: 28-September 07

Re: question

Posted 12 December 2012 - 07:34 AM

You could create a movie clip for your popup window. When the user clicks the quit button, instead of just exiting, you'll call the movie clip which will display the "Are you sure?" text and the yes/no options. Then add something like this to your movie clip code:

movieclipname._visible=false;

quitbuttonname.onRelease=function() {
   movieclipname._visible=true;
   movieclipname.ok.onRelease=function() {
       //whatever code you need to make the application exit.
   }
}


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1