|
-
External SWF Loads before the Preloader - HELP!
Can somebody help with out with this, the external swf loads before the preloader finishes completely. i've attached the code below.
Movie clip loader
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);
myListener.onLoadProgress = function(target_mc, bytesLoaded, bytesTotal) {
extLoader_mc._visible = true;
var pctLoaded = Math.round(bytesLoaded/bytesTotal*100);
extLoader_mc.extLoaderBar_mc._xscale = pctLoaded;
if (bytesLoaded >= bytesTotal) {
extLoader_mc._visible = false;
}
}
-
Senior Member
when/where are you making your call to load the .swf?
are you testing locally?
have you tried making the container clip you are loading the .swf into _visible = false..then on loadInit() or when the onLoadProgress() is done.. triggers it to be _visible = true;?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|