X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fas3compile.1;h=cb207e414de690657d65485dd649fcc257011585;hp=6c9bea18563f6b80b6c92c110a2c08903d178683;hb=c63b2bf21dc1df9a736f0b4c08f6cba828cdab92;hpb=46efc7f670b104608b68642e69e9bf1f7a0197bd diff --git a/src/as3compile.1 b/src/as3compile.1 index 6c9bea1..cb207e4 100644 --- a/src/as3compile.1 +++ b/src/as3compile.1 @@ -1,4 +1,4 @@ -.TH as3compile "1" "January 2009" "as3compile" "swftools" +.TH as3compile "1" "April 2009" "as3compile" "swftools" .SH NAME as3compile - Compile .as ActionScript 3.0 files to swf. @@ -6,7 +6,7 @@ as3compile - Compile .as ActionScript 3.0 files to swf. .B as3compile file.as [-o file.swf] .SH DESCRIPTION -Compiles a file written in ActionScript to a SWF file. +Compiles a file written in ActionScript 3.0 to a SWF file. .SH OPTIONS .TP @@ -16,9 +16,21 @@ Compiles a file written in ActionScript to a SWF file. \fB\-V\fR, \fB\-\-version\fR Print version info and exit .TP +\fB\-v\fR, \fB\-\-verbose\fR + Increase verbosity +.TP +\fB\-q\fR, \fB\-\-quiet\fR + Decrease verbosity +.TP \fB\-C\fR, \fB\-\-cgi\fR Output to stdout (for use in CGI environments) .TP +\fB\-R\fR, \fB\-\-resolve\fR + This flag will cause the compiler to try filenames like "FooBar.as" for classes named "FooBar". +.TP +\fB\-D\fR, \fB\-\-define\fR \fInamespace::variable\fR + Set a compile time variable (for doing conditional compilation) +.TP \fB\-X\fR, \fB\-\-width\fR Set target SWF width .TP @@ -28,8 +40,52 @@ Compiles a file written in ActionScript to a SWF file. \fB\-r\fR, \fB\-\-rate\fR Set target SWF framerate .TP +\fB\-M\fR, \fB\-\-mainclass\fR + Set the name of the main class (extending flash.display.MovieClip) +.TP +\fB\-l\fR, \fB\-\-library\fR \fIfile\fR + Include library file \fIfile\fR. can be an .abc or .swf file. +.TP +\fB\-I\fR, \fB\-\-include\fR \fIdir\fR + Add additional include dir \fIdir\fR. +.TP +\fB\-N\fR, \fB\-\-local-with-network\fR + Make output file "local with networking" +.TP +\fB\-L\fR, \fB\-\-local-with-filesystem\fR + Make output file "local with filesystem" +.TP \fB\-T\fR, \fB\-\-flashversion\fR \fInum\fR \fInum\fR must be >= 9. .TP \fB\-o\fR, \fB\-\-output\fR \fIfilename\fR Set output file to \fIfilename\fR. +.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