|
Revision 36, 1.4 kB
(checked in by brent, 11 months ago)
|
add README.txt for simple howto compile with mtasc
|
| Line | |
|---|
| 1 |
mtasc is a _fast_ open source actionscript < 9.0 compiler. the default |
|---|
| 2 |
usage is from the command line, but can be called from .bat files. |
|---|
| 3 |
|
|---|
| 4 |
== Compiling with mtasc == |
|---|
| 5 |
|
|---|
| 6 |
1. install mtasc from http://mtasc.org/ |
|---|
| 7 |
|
|---|
| 8 |
2. Follow the tutorial (http://www.mtasc.org/#tutorial) to make sure you can compile a simple .swf |
|---|
| 9 |
|
|---|
| 10 |
3. example usage from this directory: |
|---|
| 11 |
mtasc -version 8 -cp . -header 800:400:20:FFFFFF -swf worldkit.swf -main com/brainoff/worldkitMain.main com/brainoff/worldkitMain.as |
|---|
| 12 |
|
|---|
| 13 |
this tells mtasc that: |
|---|
| 14 |
# -cp . |
|---|
| 15 |
+ the class path is here |
|---|
| 16 |
|
|---|
| 17 |
# -header 800:400:20:FFFFFF |
|---|
| 18 |
+ to generate a movie of 800 width, 400 height, a framerate of 20, and a background color of white |
|---|
| 19 |
these can all be overridden by the values in the html |
|---|
| 20 |
|
|---|
| 21 |
# -swf worldkit.swf |
|---|
| 22 |
+ make a swf file named worldkit.swf |
|---|
| 23 |
|
|---|
| 24 |
# -main com/brainoff/worldkitMain.main |
|---|
| 25 |
+ the main() function is in that path |
|---|
| 26 |
|
|---|
| 27 |
# com/brainoff/worldkitMain.as |
|---|
| 28 |
+ the file to compile -- since this file imports all other files, these will get compiled too. |
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
4. this command: |
|---|
| 32 |
mtasc.exe -version 8 -cp . -header 800:400:20:FFFFFF -swf worldkit.swf -main com/brainoff/worldkitMain.main com/brainoff/worldkitMain.as |
|---|
| 33 |
can likely be placed directly in a .bat file and clicked to compile |
|---|
| 34 |
windows users may need to replace "-cp ." with -cp "C:\full\path\to\here" |
|---|
| 35 |
and like was for the -main path... |
|---|