fixed bug in jpeg2000 decoding
[swftools.git] / src / as3compile.doc
1 Usage: %s file.as [-o file.swf] 
2
3 Compile .as ActionScript 3.0 files to swf.
4
5 Compiles a file written in ActionScript 3.0 to a SWF file.
6
7 -h, --help
8     Print short help message and exit
9 -V, --version
10     Print version info and exit
11 -v, --verbose
12     Increase verbosity
13 -q, --quiet
14     Decrease verbosity
15 -C, --cgi
16     Output to stdout (for use in CGI environments)
17 -R, --resolve
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)
22 -X, --width
23     Set target SWF width
24 -Y, --height
25     Set target SWF width
26 -r, --rate
27     Set target SWF framerate
28 -M, --mainclass
29     Set the name of the main class (extending flash.display.MovieClip)
30 -l, --library <file>
31     Include library file <file>. <file> can be an .abc or .swf file.
32 -I, --include <dir>
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>.
40     <num> must be >= 9.
41 -o, --output <filename>
42     Set output file to <filename>.
43
44 .SH EXAMPLE
45
46  The following is a basic as3 file that can be compiled e.g.
47  with \fBas3compile -X 400 -Y 400 smiley.as\fR
48
49  // smiley.as
50  package
51  {
52      import flash.display.MovieClip
53  
54      public class Main extends MovieClip
55      {
56          function Main()
57          {
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()
66          }
67      }
68  }
69
70 .SH AUTHOR
71
72 Matthias Kramm <kramm@quiss.org>