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
}