PDA

View Full Version : Exit or Close Button


indiansoil
10-04-2006, 01:15 AM
What ActionScript function or statement is used to Close or Exit from a Flash Movie just as we do it by clicking on an Exit or Close Button and that application or window gets closed:confused:


Thanks in advance! :)

Good luck to you all!

pan69
10-04-2006, 01:17 AM
fscommand("quit");

Works in projects only (of course).

indiansoil
10-04-2006, 01:33 AM
Hi pan69!


I have just found the fscommand("QUIT",""); for this purpose but thanks a lot for your help also.

Yes, you are right. It works only in the .swf and (projector).exe files and not in the source file (main document).


Well, can you solve my another problem?

How can we hide the Main Menu Bar and Control Box (Minimize, Maximize & Close Buttons) of a Flash Movie when we create a Projector (.exe file) out of a .swf file or from the source document .fla so that only our movie or application is visible and the Flash Menu Bar, which has the buttons File, View, Control & Help, as well as the Control Box is hidden:confused:


Thanks again!

Have a nice day!


fscommand("quit");

Works in projects only (of course).