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..
question
Page 1 of 13 Replies - 1811 Views - Last Post: 12 December 2012 - 07:34 AM
Replies To: question
#2
Re: question
Posted 12 December 2012 - 05:43 AM
What have you tried so far?
Spoiler
#3
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??
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??
#4
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.
}
}
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote






|