PDA

View Full Version : Quit from StandAlone Application


paulpsd
07-25-2005, 06:40 PM
I have a Flash presentation which will be displayed on the web as well as on CD-ROM. On the CD, this will be a stand-alone application for both Windows and Mac.

The presentation currently as a "QUIT" button. On the web version, this merely closes the window in which the presentation appears. On the CD versions, however, I would like this to actually quit out of the application. Is this possible?

quincewyss
07-25-2005, 06:49 PM
use
close();
as you may have been doing, but point it at the root. or else make a function in your application language python, java, ect... and call the function from the close button inside flash.

srija
07-25-2005, 07:00 PM
well i m not so clear what exactly u want

but then if u want to close the browser, use javascript

n if u want to close the cd version ,use fscommand


rgds
srija

paulpsd
07-25-2005, 07:06 PM
I don't know if fscommand would work, since I don't know of such a command that quits the application. The only ones I see are these ones:

fullscreen
allowscale
showmenu
exec
trapallkeys

paulpsd
07-25-2005, 07:11 PM
I tried close(); but that didn't have any effect. As an action for the Quit button (which is embedded in a few MCs), I have the following:

on (release) {
_root.close ():
}

That resulted in a syntax error. From combing through the Actionscript Dictionary, I don't find the usage of close() in that way.

srija
07-25-2005, 07:26 PM
hey,
try this

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


does this helps u??

okidoki
05-12-2008, 02:53 PM
to quit the stand alone application, you use fscommand() function which gets command and arguments to pass them to the container.
For Flash player you just write fscommand("quit")
In debug mode, it does not work but it works when you execute .swf file

northcode
05-12-2008, 04:49 PM
Check the dates on the posts you're replying to, that one was 3 years old - he's probably figured it out by now ;)