View Full Version : close SWF file

11-04-2006, 07:44 AM

I have a FLA file
There is some animation on it. A "CLOSE" button is also there.

On click of the "CLOSE" button I want to close the SWF file. fscommand works in projector only but not in SWF file.

How to do it?

11-06-2006, 05:31 PM
There is no such command available to Flash Player. You could close a window by calling the JavaScript window.close() method from within Flash (closing the HTML page in which the SWF is embedded), but as for closing the standalone Flash Player, not really. If you're planning to distribute a standalone app, then you'd probably be better to package it up as a projector, as not many of your audience may have the standalone player (only the browser plug-in).