将 as2 swf 添加到 as3 swf 中的舞台

发布于 2024-07-15 08:44:12 字数 314 浏览 7 评论 0原文

我有一个菜单控件(as2),它是完全独立的,不依赖于与父级(as3)的任何交互。 菜单控件会加载与 swf 位于同一目录中的外部 xml 文件。

当我单独运行菜单控件时,它工作正常。 但是当我将它导入到我的 as3 fla 的库中,将其添加到阶段并运行它时,它只是坐着,什么都不做。

我可以看到属于控件一部分的图像,这让我相信它无法加载 xml,但我不确定。

有没有人有任何想法:

  1. 将 as2 swf 加载到不需要交互的 as3 swf
  2. 将外部文件加载到另一个 swf 内的 swf 中

I have a menu control (as2), that is completely self-contained and doesn't rely on any interaction with the parent (as3). The menu control does load an external xml file that is in the same directory as the swf.

The menu control works fine when I run it on its own. But when I import it into the Library of my as3 fla, add it the stage and run it, it just sits and does nothing.

I can see the images that are part of the control, which leads me to believe it can't load the xml, but I'm not sure.

Does anyone have any ideas about:

  1. Loading an as2 swf into and as3 swf where they don't need to interact
  2. Loading an external file into an swf inside of another swf

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

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

发布评论

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

评论(1

涙—继续流 2024-07-22 08:44:12

您是否尝试过使用 flash.net.Loader 或者如果您打算使用 Flex 应用程序:SWFLoader

Have you tried with flash.net.Loader or if you are going for a Flex app: SWFLoader?

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