将使用 XML 的 AS2 .swf 加载到 AS3 .fla 中时出现问题
我正在为客户制作一个网站,他们购买了一个用“AS 1.0 和 AS 2.0”编写的 Flash 模板,然后要求我将 googlemap 添加到“联系我们”页面。但是,googlemap API 仅适用于 AS3。我的选择是将整个网站转换为 AS3 或制作一个导入 AS2 网站的 AS3 文件,然后添加 googlemap 位。 我决定选择选项 2,因为它看起来更容易...... 无论如何,我在 AS3 文件中使用 Loader 类。
var myLoader:Loader = new Loader(); // create a new instance of the Loader class
var url:URLRequest = new URLRequest("main_v8.swf"); // in this case both SWFs are in the same folder
myLoader.load(url); // load the SWF file
addChild(myLoader);
问题是 AS2 swf 文件使用 XML 加载背景图像。它可以单独工作,但是当加载到 AS3 文件中时,背景图像不会出现。所有按钮和外部链接都可以工作,只是加载 XML。 我一直在寻找这方面的帮助,虽然有很多人在 AS3 中玩 AS2 swf 时遇到问题,但我找不到任何可以帮助解决这个问题的东西。 任何建议或解决方案将不胜感激! 谢谢!
I'm making a website for a client where they purchased a flash template that was written in "AS 1.0 & AS 2.0" and then asked me to add a googlemap to the contact us page. However, the googlemap API only works in AS3. My options were to translate the entire website to AS3 OR to make an AS3 file that imported the AS2 website and then added the googlemap bit.
I decided to go with option 2 since it seemed easier...
Anyway, I'm using the Loader class in the AS3 file.
var myLoader:Loader = new Loader(); // create a new instance of the Loader class
var url:URLRequest = new URLRequest("main_v8.swf"); // in this case both SWFs are in the same folder
myLoader.load(url); // load the SWF file
addChild(myLoader);
The problem is the AS2 swf file uses XML to load the background images. It works on its own but when loaded into the AS3 file the background images do not appear. All the buttons and external links work, its just the loading of the XML.
I've been looking all over for help on this and while there are lots of people with issues playing AS2 swf in AS3 I couldn't find anything to help with this.
Any advise or solutions would be appreciated!
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有遇到过这样的问题,但是,如果你发现问题,你就可以解决它。您可以检查一些条件:
Havent face such a problem but, if you find out the problem you ca solve it. You can check some conditions: