Exit Button in an SWF file.

  • elBurroDiablo
  • Novice
  • Novice
  • User avatar
  • Joined: Jun 17, 2005
  • Posts: 16
  • Status: Offline

Post December 5th, 2005, 10:03 am

I have a Flash presentation that I am developing, which is basically complete aside for the code on this little "exit" button that is part of the interface.

I have found several resources for an exit button script that runs only in a .exe file. My problem is the fact that this particular presentation needs to be in .swf format.

This is what I have found, that works only on .exe formats.

Code: [ Select ]
on (release) {
fscommand("quit", "true");
}
  1. on (release) {
  2. fscommand("quit", "true");
  3. }


Any help would be greatly appreciated. Thanks!
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 5th, 2005, 10:03 am

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post December 5th, 2005, 10:40 am

hmmm .... by a .swf format you mean it will be in a web page?
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”
  • rizvihaider72
  • Born
  • Born
  • No Avatar
  • Joined: Nov 15, 2010
  • Posts: 1
  • Status: Offline

Post November 15th, 2010, 10:51 pm

Greetings!
if you are using a swf you should use javascript method not the fscommand. But incase of a standalone version (.exe) then fscommand should be used. Follow here:
learntoflash.blogspot

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 75 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.