【发布时间】:2011-11-15 00:13:50
【问题描述】:
我创建了一个模块化应用程序,其中父 SWF 按需加载许多其他 SWF。为了优化,我创建了一个standard RSL。
我已将通用代码编译成 swc,并重新编译应用程序 swfs 以引用此 swc,在我的 build.xml ANT 任务中使用以下内容(对于我的应用程序中的每个 swf):
<static-link-runtime-shared-libraries>false</static-link-runtime-shared-libraries>
<runtime-shared-library-path path-element="${lib.loc}/RSL.swc">
<url rsl-url="RSL.swf"/>
</runtime-shared-library-path>
我已从 RSL.swc 中提取 RSL.swf,并将其放在我的网络服务器上,与应用程序 swfs 和容器 html 文件位于同一目录中。
现在,当我加载我的应用程序时,我会收到以下消息:
VerifyError: Error #1014: Class mx.core:BitmapAsset could not be found.
我可以看到这个类包含在 RSL.swc / RSL.swf 中的类中。
我使用 fiddler 观察发生了什么,我可以看到我的应用程序 swf 文件已加载,但没有尝试获取 RSL.swf。
将 Application.swf 文件设置为使用 RSL,我预计它会在初始化之前尝试加载 RSL.swf,但是这不会发生。谁能提出原因?
【问题讨论】:
标签: actionscript ant flash rsl