gt; 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".
gt; 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.
Using the flex complier is not the same as making something in flash, you do not put specific code into specific frames. Flex apps only have 2 frames anyway.
If you wished to compile your code for AS2 then you'd need to use the mxmlc that was build for flex 2, if you’re using the latest mxmlc then it does it for AS3.
If you are coding in AS3 then you must target flashplayer 9 or above.
发布评论
评论(3)
您无法定义语言 afaik - mxmlc 版本 3 仅是一个 actionscript 3 编译器。 可能有一些向后兼容性,但它不是 AS2 和 3 编译器的组合。
我什至不确定你的第三点实际上意味着什么,或者事实上你总体上要问什么。
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.
虽然不是直接回答您的问题,但有趣的是,MXMLC 的以下参数将允许您编写 AS1 风格的代码:
有了这些参数,您将能够再次通过原型进行扩展,并且编译器将不会使用严格模式。 这是一种有趣的方式来“扩展”语言并使用 AS3 通常不使用的类似 JS 的功能。
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:
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.
使用flex编译器与在flash中制作东西不同,你不需要将特定的代码放入特定的框架中。 无论如何,Flex 应用程序只有 2 个框架。
如果您希望为 AS2 编译代码,那么您需要使用为 Flex 2 构建的 mxmlc,如果您使用最新的 mxmlc,那么它会为 AS3 编译。
如果您在 AS3 中编码,那么您必须针对 flashplayer 9 或更高版本。
Using the flex complier is not the same as making something in flash, you do not put specific code into specific frames. Flex apps only have 2 frames anyway.
If you wished to compile your code for AS2 then you'd need to use the mxmlc that was build for flex 2, if you’re using the latest mxmlc then it does it for AS3.
If you are coding in AS3 then you must target flashplayer 9 or above.