AS2瑞士法郎的loadMovie()和unloadmovie()嵌套在AS3瑞士法郎容器内时失败 [英] AS2 .swf loadmovie() and unloadmovie() fail when nested inside an AS3 .swf container

查看:317
本文介绍了AS2瑞士法郎的loadMovie()和unloadmovie()嵌套在AS3瑞士法郎容器内时失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个AS2瑞士法郎加载作为父母AS3瑞士法郎的孩子。该AS2.swf调用的loadMovie()和unloadMovie()可显示3 JPEG文件。图像加载第一次,但在那之后,调用的loadMovie(),以取代图像,或调用unloadmovie()失败。我发现下面的Adobe的Bug报告(https://bugs.adobe.com/jira/browse/ASC-3338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel)已经表示,这已经得到解决,并且也表示,孩子影片剪辑可能没有问题所取代。这里是code我打电话。

I have an AS2 .swf being loaded as a child of a parent AS3 .swf. The AS2.swf calls loadmovie() and unloadmovie() to display 3 jpeg files. The images load the first time, but after that, a call to loadmovie() to replace the image, or a call to unloadmovie() fail. I found the following Adobe Bug report (https://bugs.adobe.com/jira/browse/ASC-3338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel) that has said this has been resolved, and also said that child movieclips could be replaced without a problem. Here is the code I'm calling.

_root.help_mc.scenes_image1_mc.loadMovie("first.jpg");
_root.help_mc.scenes_image2_mc.loadMovie("second.jpg");
_root.help_mc.scenes_image3_mc.loadMovie("third.jpg");

_root.help_mc.scenes_image1_mc.unloadMovie();
_root.help_mc.scenes_image2_mc.unloadMovie();
_root.help_mc.scenes_image3_mc.unloadMovie();

我不精通动作,所以我怕我会不会被引用以正确的方式在影片剪辑。错误报告说,子SWF的无法替代自我培养,但如果AS2 SWF充当伪根,我可以引用影片剪辑通过AS2瑞士法郎?

I'm not well versed in ActionScript, so I'm afraid I might not be referencing the movieclip in the correct way. The bug report said child swf's cannot replace themseleves, but if the AS2 swf is acting as the psuedo root, can I reference the movieclip through the AS2 swf?

推荐答案

AS2不起作用沿侧AS3。 Flash Player 9和上面有两个不同的虚拟机 - 一个用于AS1,AS2和其他为AS3,只有其中一人是在一次加载,这意味着你可以执行任何AS3或AS2但不能同时

AS2 doesn't work along-side AS3. Flash Player 9 and above have two different virtual machines - one for AS1, AS2 and the other for AS3 and only one of them is loaded at once, meaning that you can execute either AS3 or AS2 but not both.

http://en.wikipedia.org/wiki/ActionScript#Timeline_by_ActionScript_version

这篇关于AS2瑞士法郎的loadMovie()和unloadmovie()嵌套在AS3瑞士法郎容器内时失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆