开发者

Flash AS2 - LoadMovie movieclip property edits don't show in browser

开发者 https://www.devze.com 2023-02-25 13:49 出处:网络
Using loadmovie I\'m loading an external SWF on a different dom开发者_Go百科ain. Any property changes made to a movie clip in the loaded SWF don\'t show in a broswer.

Using loadmovie I'm loading an external SWF on a different dom开发者_Go百科ain. Any property changes made to a movie clip in the loaded SWF don't show in a broswer.

container.emc.loadMovie("http://externaldomain.com/movieA.swf");

Inside movieA is the movieclip "box". I don't want "box" to be visible so I've used

container.emc.box._visible = false;

All working fine at this point, when I preview the SWF from Flash (CS3) I see that box isn't visible.

When I open the SWF in the browser, movieA is loaded but box is not set to invisible. This happens with all browsers or any publish settings I try.

Thanks in advance


Sounds like a caching issue. A short term fix is to clear your cache and try again. A awy to prevent this from happening in the long term fix is to use a cache buster:

container.emc.loadMovie("http://externaldomain.com/movieA.swf"+ '?r=' + int(Math.random() * 100000);

Doing this forces the browser to refresh this file every time you request it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号