# (beginner) Help Loading Movies

**URL:** https://forum.kirupa.com/t/beginner-help-loading-movies/266953
**Category:** flash
**Created:** [July 26, 2008, 1:55am UTC](https://forum.kirupa.com/t/beginner-help-loading-movies/266953 "2008-07-26T01:55:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Furi\_Ku](https://avatars.discourse-cdn.com/v4/letter/f/ed655f/32.png) [@Furi\_Ku](https://forum.kirupa.com/u/Furi_Ku)
#### Post date: [July 26, 2008, 1:55am UTC](https://forum.kirupa.com/t/beginner-help-loading-movies/266953/1 "2008-07-26T01:55:05Z")

</div>

I followed the preloader tutorial on this site and I got that all working then I followed the load image tutorial, now I was wondering if with this code could be altered so it loads an external swf file instead of an image, if so how do I edit it?

var imageLoader:Loader;

function loadImage(url:String):void {  
preloader.visible = true;

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

}  
loadImage(“car.jpg”);

function imageLoaded(e:Event):void {  
preloader.visible = false;

imageArea.addChild(imageLoader);

}

function imageLoading(e:ProgressEvent):void {  
var loaded:Number = e.bytesLoaded / e.bytesTotal;  
preloader.SetProgress(loaded);  
}
