Flash supports six fscommands: allowscale, exec, fullscreen, showmenu, trapallkeys and quit.

If all you want to do is remove the border or change the title on your EXE file you have to hope the swf2exe vendor has implemented replacements. Then you have to hope you can find them, and finally you have to hope they work the same way.

Most third party swf2exe tools only support the QUIT fscommand and ignore the rest, leaving you hopeless.

You've probably guessed by now that SWF Studio offers more than just hope...

SWF Studio implements all but one of the Flash fscommands and the one we don't support (trapallkeys) is one that you don't need because SWF Studio already allows you to trap all keystrokes by default.

EXECfscommand("exec", "argument");

Executes an application from the projector.

In Flash, the argument to the exec command can contain only the characters A-Z, a-z, 0-9, period ()., and underscore (_). Because of this limitation you can't use the exec command to pass arguments to applications that you launch. Starting with Flash MX, if you use the exec command to call an application, the application must also reside in a subdirectory named fscommand.

In SWF Studio, the argument to the exec fscommand can contain any characters you'd like to put in there including spaces. So you can use EXEC to launch any application, anywhere on the system and pass arguments to it. See SWF Studio and FSCommand EXEC for more information.

FULLSCREENfscommand("fullscreen", "true|false");

Specifying true sets the Flash Player to full-screen mode. Specifying false returns the player to normal view.

This command works exactly the same in SWF Studio and is, in fact, the only way to put your application in fullscreen mode through code. You can use the Size setting on the Window Tab to start your projector in fullscreen mode.

QUITfscommand("quit", "");

Closes your Flash projector.

This command still exists in SWF Studio and works the same way. You can also do the same thing using ssCore.App.quit.

ALLOWSCALEfscommand("allowscale", "true|false");

Specifying false sets the player so that the movie is always drawn at its original size and never scaled. Specifying true forces the movie to scale to 100% of the player.

This command works exactly the same in SWF Studio. You can control the initial scale mode of your movie using the Scale Mode setting on the Movie Tab in SWF Studio.

SHOWMENUfscommand("showmenu", "true|false");

Specifying true enables the full set of context menu items. Specifying false dims all the context menu items except About Flash Player.

In SWF Studio, the ssCore.App.enableFlashMenu function can be used to compeltely enable or disable the default ight click menu. If you have not completely disabled the Flash context menu, the menu that appears when you right click on your application depends on how you have set the Flash showmenu fscommand. When you say fscommand("showmenu", "true") the full Flash context menu will be shown. If you use fscommand("showmenu", "false") a subset of the context menu will displayed that only contains the "Settings" and "About Flash" menu items.

TRAPALLKEYSfscommand('trapallkeys", "true|false");

Specifying true sends all key events, including accelerator keys, to the onClipEvent(keyDown/keyUp) handler in the Flash Player.

This is the only fscommand that SWF Studio doesn't implement, because it's not necessary. You need this in Flash if you want to trap things like the ESC key, but SWF Studio does this for you. In addition you can use ssCore.Keyboard.setNotify and the onKey event to handle ANY keystroke, even ones that Flash can't normally trap.