Loading swf into another swf

So Im loading movie B into movie A - using Loader class. All works well. But on one of the clients machine the child swf is not added to the display list. Instead he gets five running dots on screen. He sees preloader, but when its done loading the application crashes with those dots running. I guess somehow it tried to add the child swf to stage before stage was available, although I added correct script to check for the stage in child swf

In child swf constructor:

if (stage) {
    init();
}else {
    addEventListener(Event.ADDED_TO_STAGE, init);
}

private function init(e:Event = null):void 
{
    removeEventListener(Event.ADDED_TO_STAGE, init);
    //...... the rest
}

I suspect that clients machine is slow and that could be possible cause to this.

Everywhere else it works as expected - both mac and pc.

Any thoughts, thanks.


First thing as you said it works well on several machines including your (mac), I would think it could either be a browser problem as your client may have a different browser, or flash Version.

From the information you provided me i suggest you follow up on the platform your clients running it on, for instance Windows XP, Vista or 7. Cross check with your browser, Explorer, Fire Fox or Chrome, just to name the most common. Also how the Flash file is embedded into HTML or not, This may have effect on different browsers

Check your Clients Flash version, they may simply just need to update it.could be corrupt Also in your question you should just type the link your SWF is located then we all can just check it and see how common this error is.

Last thing to note it may be your code but you havent posted your loader class for either the community or i to see. its all speculation let us no how you go.


I've seen this happen when the movie clip loaded is compiled for a newer version of flash than the client has. Check the flash version of the player and the SWFs to be sure that's not the case.

链接地址: http://www.djcxy.com/p/17736.html

上一篇: 使用禁止访问舞台的系统时,Flash组合框出现错误

下一篇: 加载swf到另一个swf