# \[AS/XML\] Width, height issue when loading swf into flash

**URL:** <https://forum.kirupa.com/t/as-xml-width-height-issue-when-loading-swf-into-flash/240485>\
**Category:** flash\
**Created:** [October 3, 2007, 1:21pm UTC](https://forum.kirupa.com/t/as-xml-width-height-issue-when-loading-swf-into-flash/240485 "2007-10-03T13:21:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![josuason](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@josuason](https://forum.kirupa.com/u/josuason)\
**Post date:** [October 3, 2007, 1:21pm UTC](https://forum.kirupa.com/t/as-xml-width-height-issue-when-loading-swf-into-flash/240485/1 "2007-10-03T13:21:37Z")

</div>

I´m having a problem with loading in different swf files into the stage. If I use a empty movieclip (holder) nothing shows up but when I set the width and height of the holder\_mc the swf files show up but are zoomed in for some reason. Please help…

Here is my code.

```auto

var x:XML = new XML();

x.ignoreWhite = true;

var urls:Array = new Array();
var captions:Array = new Array();
var whoIsOn:Number;

x.onLoad = function() {
    var swf:Array = this.firstChild.childNodes;
    for(i=0;i<swf.length;i++) {
        urls.push(swf*.attributes.url);
        captions.push(swf*.attributes.caption);
        
    }
    holder.loadMovie(urls[0]);
    caption.text = captions[0];
    whoIsOn = 0;
}

x.load("show.xml");

previous.onRelease = function() {
    if(whoIsOn > 0) {
        whoIsOn--;
        holder.loadMovie(urls[whoIsOn]);
        caption.text = captions[whoIsOn];
    }
}

next.onRelease = function() {
    if(whoIsOn < urls.length-1) {
        whoIsOn++;
        holder.loadMovie(urls[whoIsOn]);
        caption.text = captions[whoIsOn];
    }
}

```
