# Defining variable through thumbnail's instance name

**URL:** <https://forum.kirupa.com/t/defining-variable-through-thumbnails-instance-name/303722>\
**Category:** flash\
**Created:** [January 26, 2010, 12:15am UTC](https://forum.kirupa.com/t/defining-variable-through-thumbnails-instance-name/303722 "2010-01-26T00:15:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noveltyquest](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@noveltyquest](https://forum.kirupa.com/u/noveltyquest)\
**Post date:** [January 26, 2010, 12:15am UTC](https://forum.kirupa.com/t/defining-variable-through-thumbnails-instance-name/303722/1 "2010-01-26T00:15:45Z")

</div>

This is probably one of the simplest things to do in as3, but let me tell you that when I say I am a newbie at this I mean I am a diaper-wearing green horn, but we all have to start somewhere I guess.

The Question:  
I have 20 thumbnails and 20 full images that correspond to these thumbnails. I want to be able to load the corresponding full size image from each thumbnail so that thumb\_1.jpg will load fullsize\_1.jpg, and thumb\_2.jpg load fullsize\_1.jpg, so forth and so on.

I only want to make one button do this for every single image, which I imagine is possible through as3 if I can make thumb\_“imageNumber”.jpg set the full size image name fullsize\_“imageNumber”

Again this is probably one of the most basic questions ever posted to this forum and I apologize gravely if it has been brought up on previous threads. If so, please direct me to the thread where this issue is addressed and I will be more than grateful.

Thank you in advance.
