# Help required with external images

**URL:** <https://forum.kirupa.com/t/help-required-with-external-images/311756>\
**Category:** flash\
**Created:** [July 15, 2010, 2:05pm UTC](https://forum.kirupa.com/t/help-required-with-external-images/311756 "2010-07-15T14:05:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RWalker](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@RWalker](https://forum.kirupa.com/u/RWalker)\
**Post date:** [July 15, 2010, 2:05pm UTC](https://forum.kirupa.com/t/help-required-with-external-images/311756/1 "2010-07-15T14:05:24Z")

</div>

I’m a novice and would love some further help.

To start i used the code provide in the Kirupa tutorial (see below), but try as I might I cannot get images to load on subsequent pages. I’ve created a single movie button, dragged to the position on the scene and given them individual instance names.

I’ve then tried to adapt the var and function without success. Could someone indicate the amendments in the code below to differentiate for the second (and subsequent instances)

A big thanks in advance!:ne:

var imageLoader:Loader;

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);  
}  
loadImage(“desking/main\_large.png”);

function imageLoaded(e:Event):void {  
// Load Image  
main\_large.addChild(imageLoader);  
}

function imageLoading(e:ProgressEvent):void {  
// Use it to get current download progress  
// Hint: You could tie the values to a preloader 🙂  
}
