合并 FLA 文件或将 swf 文件加载到另一个 swf 上

发布于 2024-09-14 06:30:31 字数 588 浏览 2 评论 0原文

我有两个 FLA 文件,分别称为 MAP.fla 和 ANI.fla,我必须将它们合并。我尝试的一种方法是在运行时使用常规方法(使用 Loader 和 URLRequest)将 ANI.swf 加载到 MAP.swf 中。但是,当我尝试运行它时,Flash 检测到我在 ANI.swf 中包含的方法的错误。

我确实知道 Loader 和 URLRequest 方法是有效的,因为我尝试将它与内容更简单的不同 SWF 文件一起使用。

PS ANI.swf 包含方法、具有自己的类的实例和计时器事件。如果 Loader 无法在我的 SWF 上运行,是否有其他方法可以在不影响我的 FLA 的情况下仔细执行此操作?

以下是我收到的错误消息。谢谢。 :)

TypeError: Error #1010: A term is undefined and has no properties.
    at stageRotation/stageRotation::pause()
    at stageRotation/::create()
    at stageRotation/::initStage()
    at stageRotation$iinit()

I have two FLA files, call them MAP.fla and ANI.fla, that I have to merge. One way I tried was to load the ANI.swf in MAP.swf during runtime using the normal way of doing it, using Loader and URLRequest. However, when I try to run it, flash detects errors about methods I have included in ANI.swf.

I do know that the Loader and URLRequest method of doing it works because I tried using it with a different SWF file with simpler content.

P.S. ANI.swf contains methods, instances with classes of their own and timer events. If Loader cannot work on my SWF, is there any other way of carefully doing this without affecing my FLAs?

Below is the error message i am getting. Thanks. :)

TypeError: Error #1010: A term is undefined and has no properties.
    at stageRotation/stageRotation::pause()
    at stageRotation/::create()
    at stageRotation/::initStage()
    at stageRotation$iinit()

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼趣 2024-09-21 06:30:31

Loader 和 URLRequest 是完成这项工作的最佳方法。

您的问题可能是由于从 ANI.SWF 非法(不安全)引用“stage”,或从 MAP.SWF 调用 ANI.SWF 函数但以错误的方式引起的。

您可以附上该错误消息吗?

Loader and URLRequest, are the best ways for doing this work.

your problem may causes by an illegal (unsafe) refering to "stage", from ANI.SWF, or calling ANI.SWF functions from MAP.SWF but in a wrong way.

Can you attach that error message?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文