# Simple (i think) question

**URL:** <https://forum.kirupa.com/t/simple-i-think-question/196148>\
**Category:** Uncategorized\
**Created:** [August 6, 2006, 1:59am UTC](https://forum.kirupa.com/t/simple-i-think-question/196148 "2006-08-06T01:59:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robinkmedia](https://avatars.discourse-cdn.com/v4/letter/r/ad7895/32.png) [@robinkmedia](https://forum.kirupa.com/u/robinkmedia)\
**Post date:** [August 6, 2006, 1:59am UTC](https://forum.kirupa.com/t/simple-i-think-question/196148/1 "2006-08-06T01:59:38Z")

</div>

I have 50 thumbnails all named (thumb1, thumb2, etc.)  
I would like each of them to trace what number thumb they are when pressed.  
Am I totally off in my thinking that the code below should have worked?  
Any help is greatly appreciated- Thanks!

for (var i = 0; i \< 50; i++) {  
var thisThumb = this[“thumb” + i];  
thisThumb.onRelease = function () {  
trace(thisThumb);  
};  
}
