1

我正在尝试使用通过编译器选项 -load-config 加载的配置文件来更改输出文件名。在我的编译器参数中看起来像这样:

-load-config+=build-config.xml.

我尝试了以下方法:

<flex-config>
    <o>absolute/path/to/filename</o>
</flex-config>

<flex-config>
    <output>absolute/path/to/filename</output>
</flex-config>

<flex-config>
    <compiler>
        <o>absolute/path/to/filename</o>
    </compiler>
</flex-config>

<flex-config>
    <compiler>
        <output>absolute/path/to/filename</output>
    </compiler>
</flex-config>

但没有一个奏效。我在使用 Flash Builder 4 的 PC 上。有其他人这样做过吗?另外,理想情况下,我想使用相对路径而不是绝对路径。即使我在项目配置的“附加编译器参数”字段中这样做,我也无法让它工作。

提前致谢!

4

1 回答 1

0

你很亲密:)

<?xml version="1.0"?>
<flex-config>
    <compiler>
        ...
    </compiler>
    <!-- Needs to be outside of compiler tag -->
    <output>bin/swf/MyApp.swf</output>
</flex-config>
于 2013-01-18T13:36:23.443 回答