在FlashDevelop中为Halo/Flex 4设置compiler.theme选项

pm_*_*abs 5 apache-flex flashdevelop flex4 halo

这是与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>
Run Code Online (Sandbox Code Playgroud)

我在项目>属性>编译器选项>附加编译器选项中尝试了以下值,但它们都没有工作:

-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
Run Code Online (Sandbox Code Playgroud)

谢谢.

Cli*_*ntm 8

-compatibility-version=3
Run Code Online (Sandbox Code Playgroud)

应该解决它

或者你可以试试

-theme=../frameworks/themes/Halo/halo.swc
Run Code Online (Sandbox Code Playgroud)


小智 5

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

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

这会奏效.