Array target variable

hi,

apologies for what I anticipate to be a very simple question but my brain is overloading, getting dumber by the minute, and I need to solve this today.

I have a typical slideshow with thumbnails from where to choose the image to see. Thumbnails loaded from Array that contains data loaded from XML file. All ok. Need to know how to connect the thumbnail clicked to the image that it must show. Meaning, in actionscript 3, how do I get the information of what thumbnail was clicked and how do I pass it on to load the equivalent full sized image into a container already set up on stage.

I have looked and am sure that I can find an answer but have read loads and right now my brain is really not processing… please help.

Thank you.