# Why my dynamic movieclip change size

**URL:** <https://forum.kirupa.com/t/why-my-dynamic-movieclip-change-size/306379>\
**Category:** Uncategorized\
**Created:** [March 14, 2010, 12:05pm UTC](https://forum.kirupa.com/t/why-my-dynamic-movieclip-change-size/306379 "2010-03-14T12:05:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![majlotech](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@majlotech](https://forum.kirupa.com/u/majlotech)\
**Post date:** [March 14, 2010, 12:05pm UTC](https://forum.kirupa.com/t/why-my-dynamic-movieclip-change-size/306379/1 "2010-03-14T12:05:37Z")

</div>

I have a rectangle shaped movieclip that is my contentPlaceHolder for my content. I added action script to dynamically load pictures. I addChild() the loaded pictures to my contenplaceholder movie clip. The problem is when i export and play the movie pictures are loaded but not in there actual size.

the code:  
var xmlLoaders:URLLoader = new URLLoader();  
var xmlDatas:XML = new XML();

xmlLoaders.addEventListener(Event.COMPLETE, LoadXMLs);  
xmlLoaders.load(new URLRequest(“content/diskografija.xml”));

function LoadXMLs(e:Event):void{  
var xmlData = new XML(e.target.data);  
var albums:XMLList=xmlData.albums.children();  
for(var i:int=0;i\<albums.length();++i){  
var album:XMLList=albums\*.attributes();  
var r:URLRequest=new URLRequest(album[1].toString());  
var loader:Loader=new Loader();  
var clip:MovieClip=new MovieClip();

```
loader.load(r);
clip.addChild(loader);
addChild(clip);
	clip.y=10+150*i;
clip.x=10;	

```

}  
}

Pictures are shown in the right order with my clip.y code but they are not their actual size.
