# Movie Clip Scale

**URL:** <https://forum.kirupa.com/t/movie-clip-scale/265434>\
**Category:** flash\
**Created:** [July 8, 2008, 8:43pm UTC](https://forum.kirupa.com/t/movie-clip-scale/265434 "2008-07-08T20:43:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BigDaftie](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@BigDaftie](https://forum.kirupa.com/u/BigDaftie)\
**Post date:** [July 8, 2008, 8:43pm UTC](https://forum.kirupa.com/t/movie-clip-scale/265434/1 "2008-07-08T20:43:45Z")

</div>

I have a xml file with a list for images for a slideshow, all the images are different sizes. How can i make the images fill the move clip frame when loaded 200x200?  
im not sure id i should clear the last image before loading the next?  
My code is below.

function loadImage(url:String):void {

// Set properties on my Loader object

imageLoader = new Loader();  
imageLoader.load(new URLRequest(url));  
imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);  
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);  
}

function imageLoaded(e:Event):void {

imageArea.addChild(imageLoader);  
imageArea.width = 200  
imageArea.height = 200  
}
