# Linking Thumbnails to External Pics

**URL:** https://forum.kirupa.com/t/linking-thumbnails-to-external-pics/270759
**Category:** flash
**Created:** [September 13, 2008, 5:25pm UTC](https://forum.kirupa.com/t/linking-thumbnails-to-external-pics/270759 "2008-09-13T17:25:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![txnyriny](https://avatars.discourse-cdn.com/v4/letter/t/838e76/32.png) [@txnyriny](https://forum.kirupa.com/u/txnyriny)
#### Post date: [September 13, 2008, 5:25pm UTC](https://forum.kirupa.com/t/linking-thumbnails-to-external-pics/270759/1 "2008-09-13T17:25:05Z")

</div>

I’ve been having trouble for awhile trying to get a photo website I built to work. (Flash/AS3 newbie, btw)… Unfortunately I didn’t know that linking thumbnails to internal photos would take forever and a year to download. I’d like to keep my site as-is, but just redirect the thumbs to external pics so the site is functional.

An abbreviated sample of my code is below. I used an array for each of the photo galleries. The thumbs are buttons w/in movie clips (e.g., “guatTnails.guBtn1”). They call the full-size pics from the library into a component loader, “placeLdr” in the code below.

What is the easiest way to have the mouse event link the buttons/thumbs not to an internal array from the library, but to external full-size pics? I’m guessing it’s via XML, but I can’t find anything anywhere that shows how to use XML with buttons/thumbnails.

Thanks!!

var guatArray:Array = [“boat at dusk.jpg”, “head\_carriers.jpg” (…etc)]

guatTnails.guBtn1.addEventListener (MouseEvent.CLICK, ldr1)  
function ldr1 (e:Event) {  
placeLdr.source = guatArray[0];  
}

guatTnails.guBtn2.addEventListener (MouseEvent.CLICK, ldr2)  
function ldr2 (e:Event) {  
placeLdr.source = guatArray[1];  
} (…etc)
