PDA

View Full Version : how to make quit button in flash mx


zextapo
05-01-2005, 09:30 PM
I know this should be simple one, but I can't find method to join the button with quit function. I am trying to make presentation which must have quit button.

Thanks in advance, and sorry for stupid question.

Flash Gordon
05-01-2005, 09:33 PM
next time try to be more vague :)
do you mean like the "X" on the top right screen? or like enable=false;? or myButton_btn.onPress =quitFunction;

zextapo
05-02-2005, 09:46 PM
I meant myButton_btn.onPress =quitFunction;
How can I do that?

coolioman
05-02-2005, 09:53 PM
on(press){
fscommand("quit");
}

like that?