1 Usage: %s file.as [-o file.swf]
3 Compile .as ActionScript 3.0 files to swf.
5 Compiles a file written in ActionScript 3.0 to a SWF file.
8 Print short help message and exit
10 Print version info and exit
16 Output to stdout (for use in CGI environments)
18 Try to resolve undefined classes automatically.
19 This flag will cause the compiler to try filenames like "FooBar.as" for classes named "FooBar".
20 -D, --define <namespace::variable>
21 Set a compile time variable (for doing conditional compilation)
27 Set target SWF framerate
29 Set the name of the main class (extending flash.display.MovieClip)
31 Include library file <file>. <file> can be an .abc or .swf file.
33 Add additional include dir <dir>.
34 -N, --local-with-network
35 Make output file "local with networking"
36 -L, --local-with-filesystem
37 Make output file "local with filesystem"
38 -T, --flashversion <num>
39 Set target SWF flash version to <num>.
41 -o, --output <filename>
42 Set output file to <filename>.
46 The following is a basic as3 file that can be compiled e.g.
47 with \fBas3compile -X 400 -Y 400 smiley.as\fR
52 import flash.display.MovieClip
54 public class Main extends MovieClip
58 this.graphics.beginFill(0xcccc00)
59 this.graphics.drawCircle(200,200,200)
60 this.graphics.endFill()
61 this.graphics.beginFill(0x000000)
62 this.graphics.drawCircle(140,150,50)
63 this.graphics.drawCircle(260,150,50)
64 this.graphics.drawRoundRect(140,270,120,10,20);
65 this.graphics.endFill()
72 Matthias Kramm <kramm@quiss.org>