5

下面是 ant build.xml 的作用:

<mxmlc file="${module.main.dir}/main.mxml" keep-generated-actionscript="false" output="${module.output.dir}/main.swf" fork="${flex.fork}">
    <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
    <source-path path-element="${FLEX_HOME}/frameworks"/>
    <compiler.theme file="${FLEX_HOME}/frameworks/themes/Halo/halo.swc"/>
</mxmlc>

我在 Project > Properties > Compiler Options > Additional Compiler Options 中尝试了以下值,但没有一个起作用:

-theme=PATH_TO/halo.swc
-compiler.theme=PATH_TO/halo.swc
-theme=file=PATH_TO/halo.swc
-compiler.theme.file=PATH_TO/halo.swc
-theme.file=PATH_TO/halo.swc

谢谢。

4

2 回答 2

8
-compatibility-version=3

应该修复它

或者你可以试试

-theme=../frameworks/themes/Halo/halo.swc
于 2010-08-25T19:10:49.767 回答
6

复制以下行并将其粘贴到其他编译器选项中。

-theme=${flexlib}/themes/Halo/halo.swc

这将起作用。

于 2011-07-20T09:07:52.530 回答