# Help xml picture proportions problem

**URL:** <https://forum.kirupa.com/t/help-xml-picture-proportions-problem/310454>\
**Category:** flash\
**Created:** [June 10, 2010, 2:12pm UTC](https://forum.kirupa.com/t/help-xml-picture-proportions-problem/310454 "2010-06-10T14:12:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ntb212](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@ntb212](https://forum.kirupa.com/u/ntb212)\
**Post date:** [June 10, 2010, 2:12pm UTC](https://forum.kirupa.com/t/help-xml-picture-proportions-problem/310454/1 "2010-06-10T14:12:31Z")

</div>

I am creating a slideshow for a client, he would like to have it so that he can replace the pictures in the slideshow without any coding. I have gotten the xml part working but am having problems if you put big pictures into the slideshow. I do have some code already for changing the size of the movieclip that it puts the loaded picture into but the larger pictures are still large. Here is the code that i have so far.

var xml:XML;  
var xmlList:XMLList;  
var xmlLoader:URLLoader = new URLLoader();  
var imgArray:Array = new Array();  
var imageLoader1:Loader;  
var currentPic:MovieClip;  
var j:Number = 0;  
var p:Number = 0;

xmlLoader.load(new URLRequest(“images.xml”));  
xmlLoader.addEventListener(Event.COMPLETE, xmlComplete);

function xmlComplete(event:Event) :void {  
xml = XML(event.target.data);  
xmlList = xml.children()  
imageLoader1 = new Loader();  
imageLoader1.load(new URLRequest(xmlList[0].attribute(“href”)));

```
	imgholder1_mc.addChild(imageLoader1);
	imgArray.push(imgholder1_mc);
	imageLoader1.x = -100;
	imageLoader1.y = -100;

```

}

my main problem is that you are not allowed to change the dimensions of a “visible” loader. Any help would be appreciated
