PDA

View Full Version : button actions


Dutcherr
03-13-2001, 06:12 PM
Hey, I have a question concerning button actions using flash5. I am unable to create and activate a quit button. I want to offer both replay and quit buttons at the end of my projects. Can anyone help? Please reply asap. Thanks.

mgb
03-13-2001, 09:37 PM
Use the fs command 'quit' (no arguments)

~mgb

loydthefarmer
03-15-2001, 08:28 AM
On a totaly unrelated note your name does not happen to be amie does it?

Dutcherr
03-15-2001, 01:46 PM
I tried what mgb advised. Still doesn't work. I tried fs command - then typed quit in the command box, then typed no arguments in the argument box. Am I supposed to check the expression box? What do I do with the command for standalone player box? Please help!!

Strok
03-15-2001, 03:02 PM
MGB is 100% right

use a
---------------------------------------------
on (release) {
fscommand ("quit");
}

If you want to close EXE project
----------------------------------------------

or

-------------------------------------------
on (release) {
getURL ("javascript:self.close()");
}

If you whant to close HTML page with flash

mgb
03-15-2001, 05:40 PM
Hi Dutcherr,

"no arguments" means theres no arguments associated with the 'quit' command, so just leave the field blank. All you need do is select quit from the dropdown or type it in and you're finished. :p

~mgb

xramadon
04-04-2007, 03:21 PM
Anybody got a clue on how to make a quit button work in AS 3.0?

Can't seem to find any global functions that would tell the application to quit.

-x