Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flex Command Line compiler capablities [closed]

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.

  • Configure which language you're writing in, ActionScript 2 / 3
  • Configure which Flash Player version you're targetting, 7 / 8 / 9 / 10
  • Configure what frames of the movie, contain what ActionScript code.

An article covering Mxmlc, an intro to the Flex SDK.

like image 231
Robin Rodricks Avatar asked Nov 28 '25 22:11

Robin Rodricks


2 Answers

$> 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.

like image 154
inferis Avatar answered Nov 30 '25 16:11

inferis


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.

like image 36
Josh Tynjala Avatar answered Nov 30 '25 15:11

Josh Tynjala



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!