makeswf(1)

NAME
makeswf - actionscript compiler

SYNOPSIS
makeswf [OPTIONS] <frame_content> ...

DESCRIPTION
makeswf is a command line interface to the Ming library actionscript compiler, with support for embedding prebuilt content.

frame_content can be either: an ActionScript source file, a bitmap file (png or jpg), or an SWF file. Non-ActionScript input files are currently only recognized by extension (png, jpg, swf). Files with other extensions will be assumed to contain ActionScript source code.

Each frame_content will be stored in a separate frame of the output.

ActionScript code is preprocessed using cpp before being compiled, this allows (among many other things) grouping multiple sourcefiles into a single frame by using #include directives. (See PREPROCESSOR below.)

Bitmap or SWF content will be stored in a MovieClip named after the corresponding input filename with path and extension removed. This allows easy referencing of the content by ActionScript code.

OPTIONS

-o <output>
    Write SWF file to <output>. Default is ``out.swf''.

-s <width>x<height>
    Set output frame size.

-r <frame_rate>
    Set output frame rate (defaults to 12).

-v <swfversion>
    Set output SWF version (defaults to 6).

-c <compression_level>
    Set output compression level (defaults to 9).

-I <dir>
    Add <dir> to the include search path. The option is passed to the C preprocessor.

-D <macro>[=<def>]>
    Define <macro>. The option is passed to the C preprocessor.

-i <library.swf>:<sym>[,<sym>]>
    Import named symbols from the given SWF file and store them into a __shared_assets invisible sprite. The file is not required to be found at compile time, and no check is performed to ensure symbols are therein defined. It will be loaded at runtime, so make sure to specify the correct runtime path to find it.

-h  Print quick help.

-V  Print version and copyright info.

PREPROCESSOR
makeswf invokes the C preprocessor on each of the given source filenames before compiling them. The preprocessed version is named after the output file with ".frame#.pp" appended; check this file when looking for line numbers reported in syntax errors.

An __SWF_VERSION__ macro is automatically provided so that ActionScript code can act differently based on target player; it is set to the output SWF version (changed with -v).

AUTHOR
Written by Sandro Santilli <strk@keybit.net>

COPYRIGHT
Code is released under the GNU GPL license.