Command Line

Flash Optimizer lets you use command line in order not to use the routine process with optimization settings.

You can use command line options to automate the process in future. Command line is available for Business License for 1 developer and Worldwide Business License owners only.


Read the following syntaxes and examples to know the meaning of each command:

 

Syntax:

/f [file name for compression]

Description

This is the original file for compression.


Syntax:

/t [file name for result]

Description

This is the full path to the resulting file.


Syntax:

/o [option name or the path to the xml file with settings]For example:

/o Best – use internal preset ‘Best optimization’ or choose another one (Good, Basic, Medium, Sprite)

/o MyPreset – use your own saved preset

/o D:\super_compression.plist – apply these settings for better quality

Notes:

    • You can get examples of xml files in C:\Users\User_name\AppData\Roaming\Eltima Software\Flash Optimizer\presets\*.plist catalog after you launch Flash Optimizer
    • If a parameter is not set, the default settings will be active (parameters from the last Flash Optimizer session)
    • Each parameter must be started from uppercase letter

Syntax:

/d [default directory]

Description

This is a catalog, where optimized movies will be saved to.

Note, if “/d” and “/t” keys are used at the same time, “/t” will be ignored.


Syntax:

/c [directory]

Description

This command permits to find all SWF files in the specified directory and add them to Tasks list for optimization.


Syntax:

/r [directory]

Description

This command permits to look for all SWF files recursively in the specified directory and add them to Tasks list for optimization.


Examples:

fo2.exe /f “D:\TestSource\Shapes\Shape 18.swf” /o “D:\Sprite compression.plist” /d D:\

Description

Optimize “D:\TestSource\Shapes\Shape 18.swf” with settings set in “D:\Sprite compression.plist” and save this file to the disk D:\

fo2.exe /f “D:\TestSource\Shapes\Shape 18.swf” /t “D:\TestSource\Shapes\opt.swf” /f “D:\TestSource\Shapes\Shape 19.swf” /t “D:\TestSource\Shapes\opt2.swf” /f “D:\TestSource\Shapes\Shape 25.swf” /t “D:\TestSource\Shapes\opt3.swf” /o Medium

Description

Optimize “D:\TestSource\Shapes\Shape 18.swf“, “D:\TestSource\Shapes\Shape 19.swf” and “D:\TestSource\Shapes\Shape 25.swf” files in resulting “D:\TestSource\Shapes\opt.swf“, “D:\TestSource\Shapes\opt2.swf“, “D:\TestSource\Shapes\opt3.swf” files accordingly with ‘Medium quality’ settings.