将 as2 swf 添加到 as3 swf 中的舞台
我有一个菜单控件(as2),它是完全独立的,不依赖于与父级(as3)的任何交互。 菜单控件会加载与 swf 位于同一目录中的外部 xml 文件。
当我单独运行菜单控件时,它工作正常。 但是当我将它导入到我的 as3 fla 的库中,将其添加到阶段并运行它时,它只是坐着,什么都不做。
我可以看到属于控件一部分的图像,这让我相信它无法加载 xml,但我不确定。
有没有人有任何想法:
- 将 as2 swf 加载到不需要交互的 as3 swf
- 将外部文件加载到另一个 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:
- Loading an as2 swf into and as3 swf where they don't need to interact
- Loading an external file into an swf inside of another swf
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过使用
flash.net.Loader
或者如果您打算使用 Flex 应用程序:SWFLoader?Have you tried with
flash.net.Loader
or if you are going for a Flex app: SWFLoader?