# Loading an external swf

**URL:** https://forum.kirupa.com/t/loading-an-external-swf/248369
**Category:** Uncategorized
**Created:** [January 7, 2008, 4:39pm UTC](https://forum.kirupa.com/t/loading-an-external-swf/248369 "2008-01-07T16:39:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lilleypants](https://avatars.discourse-cdn.com/v4/letter/l/f17d59/32.png) [@lilleypants](https://forum.kirupa.com/u/lilleypants)
#### Post date: [January 7, 2008, 4:39pm UTC](https://forum.kirupa.com/t/loading-an-external-swf/248369/1 "2008-01-07T16:39:14Z")

</div>

I have an external swf that I am loading into an empty movieclip like so:

```auto
 
this.createEmptyMovieClip("img_mc", 9999);
var my_mcl:MovieClipLoader = new MovieClipLoader();
// Create listener object:
var mclListener:Object = new Object();
mclListener.onLoadError = function(target_mc:MovieClip, errorCode:String, status:Number) {
 loading_txt.text = "Error loading image: " + errorCode + " [" + status + "]"
    trace("Error loading image: " + errorCode + " [" + status + "]");
};
mclListener.onLoadStart = function(target_mc:MovieClip):Void {
    trace("onLoadStart: " + target_mc);
};
mclListener.onLoadProgress = function(target_mc:MovieClip, numBytesLoaded:Number, numBytesTotal:Number):Void {
    var numPercentLoaded:Number = numBytesLoaded / numBytesTotal * 100;
    trace("onLoadProgress: " + target_mc + " is " + numPercentLoaded + "% loaded");
 _root.loading_txt.text = ("onLoadProgress: " + target_mc + " is " + numPercentLoaded + "% loaded");

};

```

The only problem is that when ever I publish the movie it makes a board around the emptymovieclip and when I full screen it, it doesn’t expand the emptymovieclip too.

Is there anyway to set the dimensions of the empty movie clip?

Any help would be great thanks.:h:
