http://iteratif.free.fr/blog/index.php?2006/08/19/50-le-compilateur-de-flash-9
<<As you know, At the release of Flex2 i discovered the AS3 compiler " asc.jar" (See the post : Le compilateur AS3 de macromedia [Français])
Today i show you the AS3 compiler of Flash 9 "asc_authoring.jar" .You could find it at :
C:\Program Files\Adobe\Flash 9 Public Alpha\en\Configuration\ActionScript 3.0
If we execute it with the "-h" param, we obtain the help of the compiler at the command line :
asc {-AS3|-ES|-d|-f|-h|-i|-import <filename>|-in <filename>|-m|-p}* filespec
-AS3 = use the AS3 class based object model for greater performance and better error reporting
-ES = use the ECMAScript edition 3 prototype based object model to allow dynamic overriding of prototype properties
-d = emit debug info into the bytecode
-f = print the flow graph to standard out
-h = print this message
-i = write intermediate code to the .il file
-import <filename> = make the packages in the
specified file available for import
-in <filename> = include the specified filename
(multiple -in arguments allowed)
-m = write the avm+ assembly code to the .il file
-p = write parse tree to the .p file
-md = emit metadata information into the bytecode
-warnings = warn on common actionscript mistakes
-strict = treat undeclared variable and method access as errors
-sanity = system-independent error/warning output -- appropriate for sanity testing
-log = redirect all error output to a logfile
-exe <avmplus path> = emit an EXE file (projector)
-swf classname,width,height[,fps] = emit a SWF file
-language = set the language for output strings {EN|FR|DE|IT|ES|JP|KR|CN|TW}
-optimize = produced an optimized abc fileAfter a short view, we could compile our SWF files like :
java -jar asc_authoring.jar -import global.abc -import playerglobal.abc -swf TestGlobal,550,400 TestGlobal.asYou could realise we need 2 files with the ".abc" extension. They are precompiled files with the natives classes for the player.
Here, were reach the most interesting chapter, if we want to know the structure of the ".abc" files, we can ask the compiler using the option -m
to provide us the file of extension .il which contains your code in a "intermediate" language.
java -jar asc_authoring.jar -import global.abc -import playerglobal.abc -m -swf TestGlobal,550,400 TestGlobal.asWe get an amazing file, "TestGlobal.il", here its content :
_______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
