0

仅更新 Flex Web 应用程序的 swf 文件时出现以下错误:

Flex 错误 #1001:摘要与 RSL 不匹配

我理解为什么会发生这种情况(因为 RSL 的 catalog.xml 中的摘要与 Flex Web 应用程序的 swf 文件所期望的不匹配)但找不到成功更新 Flex Web 应用程序的方法。我的问题是如何将 ANT 与 Flex 3.6 SDK 一起使用?

我试图通过在所有 RSL 的 compc 标记上将“compute-digest”属性设置为 false 来让 Flex Web 应用程序忽略摘要值:

<compc compiler.as3="true" 
  output="${temp-swc-dir}/@{name}.swc" 
  incremental="false" 
  fork="false" 
  compiler.show-deprecation-warnings="false" 
  compiler.verbose-stacktraces="${VERBOSE}" 
  compute-digest="false"
  >

但是当 mxmlc 被执​​行时,它没有提到摘要。我的 mxmlc 标签有什么需要改变的吗?

<mxmlc file="${target-dir}/@{build-directory}/revolution/src/${SWF_NAME}.mxml" 
    output="${target-dir}/@{build-directory}/${SWF_NAME}.swf" 
    actionscript-file-encoding="UTF-8" 
    keep-generated-actionscript="false" 
    incremental="false" 
    debug="@{qa-build}" 
    fork="false" 
    static-link-runtime-shared-libraries="false" 
    use-network="true"
    >

    <runtime-shared-library-path path-element="${target-dir}/@{build-directory}/swc/as3corelib.swc">
        <url rsl-url="rsl/as3corelib.swf" />
    </runtime-shared-library-path>

    <runtime-shared-library-path path-element="${target-dir}/@{build-directory}/swc/asx.swc">
        <url rsl-url="rsl/asx.swf" />
    </runtime-shared-library-path>

    <runtime-shared-library-path path-element="${target-dir}/@{build-directory}/swc/top-level-tools.swc">
        <url rsl-url="rsl/top-level-tools.swf" />
    </runtime-shared-library-path>

    <source-path path-element="${target-dir}/@{build-directory}/revolution/src" />

    <!-- list of path elements that form the roots of ActionScript class hierarchies. -->
    <source-path path-element="${FLEX_HOME}/frameworks" />

    <!-- list of SWC files or directories that contain SWC files. -->
    <compiler.library-path dir="${FLEX_HOME}/frameworks/libs" append="true">
        <include name="framework.swc" />
    </compiler.library-path>

    <compiler.library-path dir="${target-dir}/@{build-directory}/swc" append="true">
        <include name="*.swc" />
    </compiler.library-path>

    <compiler.library-path dir="${target-dir}/@{build-directory}/revolution/libs" append="true">
        <include name="*.swc" />
    </compiler.library-path>

</mxmlc>
4

1 回答 1

0

I think Flex comes with a tool to update digests. It's called "digest". I documented the steps needed to create RSLs from third party SWC libraries in my Wiki ... To me it looks as if your RSL and SWC no longer match. https://dev.c-ware.de/confluence/display/PUBLIC/Creating+RSLs+from+your+3rd+party+libs So if you would just create the RSL from the SWC you are using you should be on the safe side.

于 2014-01-17T15:25:33.073 回答