# Problem with preloading

**URL:** <https://forum.kirupa.com/t/problem-with-preloading/222255>\
**Category:** Uncategorized\
**Created:** [April 12, 2007, 12:08am UTC](https://forum.kirupa.com/t/problem-with-preloading/222255 "2007-04-12T00:08:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gr8one884](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gr8one884](https://forum.kirupa.com/u/gr8one884)\
**Post date:** [April 12, 2007, 12:08am UTC](https://forum.kirupa.com/t/problem-with-preloading/222255/1 "2007-04-12T00:08:13Z")

</div>

I’m am loading a .swf into a different .swf using movieClipLoader. I can see using bandwith profiler the .swf is loading, but for some the index2.swf I load into container1 doesn’t show. I appreciate any help. I really can’t find any reason for this. I’m using Flash 8.

var rootLevel:Object = this;  
var container1:MovieClip = rootLevel.createEmptyMovieClip(“container1”, rootLevel.getNextHighestDepth());

var myMCL:MovieClipLoader = new MovieClipLoader();  
var myListener:Object = new Object();  
myMCL.loadClip(“index2.swf”, “container1”);  
progressBar.\_alpha = 100;  
myMCL.addListener(myListener);

myListener.onLoadProgress = function(target\_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number)  
{  
var loaded:Number = Math.round((bytesLoaded/bytesTotal) \* 100);  
trace(bytesLoaded + " / " + bytesTotal);  
progressBar.\_xscale = loaded;  
}

myListener.onLoadInit = function(target\_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number)  
{  
var loaded:Number = Math.round((bytesLoaded/bytesTotal) \* 100);  
trace(bytesLoaded + " / " + bytesTotal);  
progressBar.\_xscale = loaded;  
}

myListener.onLoadStart = function (target\_mc:MovieClip)  
{  
progressBar.tween("\_alpha", 100, 2, noType, .01);  
}
