Although the Flex command-line compiler (mxmlc) can compile MXML+ActionScript files into SWFs, I need specific insights into its capabilities, via the command-line switches.
An article covering Mxmlc, an intro to the Flex SDK.
$> mxmlc --help target-player
-target-player <version>
specifies the version of the player the application is targeting.
Features requiring a later version will not be compiled into the
application. The minimum value supported is "9.0.0".
You can't define the language afaik - mxmlc version 3 is an actionscript 3 compiler only. There may be some backwards compatibility, but it's not a combined AS2 and 3 compiler.
I'm not even sure what your third point actually means, or in fact what you're asking overall.
Though not a direct answer to your question, it's interesting to note that the following arguments to MXMLC will allow you to write AS1-style code:
-strict=false -as3=false -es=true
With those arguments, you'll be able to extend via prototype again and the compiler won't use strict mode. It's a fun way to "extend" the language and play with the JS-like capabilities not normally used with AS3.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With