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 Include library file <file>. <file> can be an .abc or .swf file.
31 Add additional include dir <dir>.
32 -N, --local-with-network
33 Make output file "local with networking"
34 -L, --local-with-filesystem
35 Make output file "local with filesystem"
36 -T, --flashversion <num>
37 Set target SWF flash version to <num>.
39 -o, --output <filename>
40 Set output file to <filename>.
44 The following is a basic as3 file that can be compiled e.g.
45 with \fBas3compile -X 400 -Y 400 smiley.as\fR
50 import flash.display.MovieClip
52 public class Main extends MovieClip
56 this.graphics.beginFill(0xcccc00)
57 this.graphics.drawCircle(200,200,200)
58 this.graphics.endFill()
59 this.graphics.beginFill(0x000000)
60 this.graphics.drawCircle(140,150,50)
61 this.graphics.drawCircle(260,150,50)
62 this.graphics.drawRoundRect(140,270,120,10,20);
63 this.graphics.endFill()
70 Matthias Kramm <kramm@quiss.org>