# MovieClipLoader's loadClip method is loading swf before its downloaded 100%? (Smack)

**URL:** https://forum.kirupa.com/t/moviecliploaders-loadclip-method-is-loading-swf-before-its-downloaded-100-smack/269461
**Category:** Uncategorized
**Created:** [August 27, 2008, 10:58pm UTC](https://forum.kirupa.com/t/moviecliploaders-loadclip-method-is-loading-swf-before-its-downloaded-100-smack/269461 "2008-08-27T22:58:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fcastro](https://avatars.discourse-cdn.com/v4/letter/f/b3f665/32.png) [@fcastro](https://forum.kirupa.com/u/fcastro)
#### Post date: [August 27, 2008, 10:58pm UTC](https://forum.kirupa.com/t/moviecliploaders-loadclip-method-is-loading-swf-before-its-downloaded-100-smack/269461/1 "2008-08-27T22:58:27Z")

</div>

Hello everyone,

I created a MovieClipLoader a few days ago that is reuseable. I will be using the same preloader graphics when I am loading in external swf on my stage. My MovieClipLoader functions fine with jpegs and smaller sized swf files. But whenever I load a larger sizes swf it loads the movie before it has fully downloaded in simulation mode. The odd part is that everything works fine with smaller swf files but not larger ones :sigh:. I have tested a few movies and that seems to be the common theme.

In the example below main.swf is the clip I am loading into “mcBackground”.

```auto

var mclTV : MovieClipLoader = new MovieClipLoader ();
var loadListener : Object = new Object ();
// events it will handle
loadListener.onLoadStart = function ()
{
 trace ("onLoadStart");
 trace (this._target);
 progress_mc._y == 268;
 txtLoaded._visible = true;
 progress_mc._visible = true;
};
loadListener.onLoadProgress = function (target : MovieClip, bytesLoaded : Number, bytesTotal : Number)
{
 txtLoaded.text = String (Math.floor (bytesLoaded / bytesTotal * 100)) + "% loaded";
 progress_mc._xscale = bytesLoaded / bytesTotal * 100;
};
loadListener.onLoadComplete = function ()
{
 trace ("onLoadComplete");
 txtLoaded._visible = false;
 progress_mc._visible = false;
};
mclTV.addListener (loadListener);
mclTV.loadClip ("main.swf", mcBackground); //mcBackground is an empty movieClip on the stage
txtLoaded._visible = false;
progress_mc._visible = false;

```
