X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fas3compile.doc;h=c6c007c21a81757f5f8da8d58e3fc66fe6e10562;hp=b37090349e9e85fa6764ac6ad7f06f3f802ffdeb;hb=5a9b4530f6a84ce3666a94605270bddaf43c9ff2;hpb=322a2f4bf5cdb00be99a0fe660372b1596265a4d diff --git a/src/as3compile.doc b/src/as3compile.doc index b370903..c6c007c 100644 --- a/src/as3compile.doc +++ b/src/as3compile.doc @@ -2,7 +2,7 @@ Usage: %s file.as [-o file.swf] Compile .as ActionScript 3.0 files to swf. -Compiles a file written in ActionScript to a SWF file. +Compiles a file written in ActionScript 3.0 to a SWF file. -h, --help Print short help message and exit @@ -14,6 +14,11 @@ Compiles a file written in ActionScript to a SWF file. Decrease verbosity -C, --cgi Output to stdout (for use in CGI environments) +-R, --resolve + Try to resolve undefined classes automatically. + This flag will cause the compiler to try filenames like "FooBar.as" for classes named "FooBar". +-D, --define + Set a compile time variable (for doing conditional compilation) -X, --width Set target SWF width -Y, --height @@ -21,9 +26,9 @@ Compiles a file written in ActionScript to a SWF file. -r, --rate Set target SWF framerate -l, --library - Include library file + Include library file . can be an .abc or .swf file. -I, --include - Add include dir + Add additional include dir . -N, --local-with-network Make output file "local with networking" -L, --local-with-filesystem @@ -34,6 +39,32 @@ Compiles a file written in ActionScript to a SWF file. -o, --output Set output file to . +.SH EXAMPLE + + The following is a basic as3 file that can be compiled e.g. + with \fBas3compile -X 400 -Y 400 smiley.as\fR + + // smiley.as + package + { + import flash.display.MovieClip + + public class Main extends MovieClip + { + function Main() + { + this.graphics.beginFill(0xcccc00) + this.graphics.drawCircle(200,200,200) + this.graphics.endFill() + this.graphics.beginFill(0x000000) + this.graphics.drawCircle(140,150,50) + this.graphics.drawCircle(260,150,50) + this.graphics.drawRoundRect(140,270,120,10,20); + this.graphics.endFill() + } + } + } + .SH AUTHOR Matthias Kramm