Help required with external images

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 :slight_smile:
}