# I almost feel guilty asking this

**URL:** <https://forum.kirupa.com/t/i-almost-feel-guilty-asking-this/180189>\
**Category:** flash\
**Created:** [February 26, 2006, 6:00pm UTC](https://forum.kirupa.com/t/i-almost-feel-guilty-asking-this/180189 "2006-02-26T18:00:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soig](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Soig](https://forum.kirupa.com/u/Soig)\
**Post date:** [February 26, 2006, 6:00pm UTC](https://forum.kirupa.com/t/i-almost-feel-guilty-asking-this/180189/1 "2006-02-26T18:00:37Z")

</div>

I almost feel guilty asking this because its so similar to the last question. (But its not)

I have a series of images stored on my server labeled in numeric order

[http://www.sergprotector.com/U2XS/images/flashThumbnails/cell1img.jpg](http://www.sergprotector.com/U2XS/images/flashThumbnails/cell1img.jpg)  
all the way through  
[http://www.sergprotector.com/U2XS/images/flashThumbnails/cell8img.jpg](http://www.sergprotector.com/U2XS/images/flashThumbnails/cell8img.jpg)

So I created this for loop to create the links for each button. cell1 - cell8 are supposed to be linked to their corresponding images. But in the end they are all linked to cell8’s image. This is the same problem I had before but since I am not reffering from an array it is not the same. HOW DO I MAKE A FOR LOOP MEMORIZE IT’S PLACE?? Thanks again guys. I know it can be annoying answering the same questions but I need the help!

> 

//DECLARE BUTTON PROPERTIES  
for (i = 0; i \< 8; i++) {  
\_root.field[“cell” + i].onPress = function() {  
\_root.field.imgLoader.loadMovie(“[http://www.sergprotector.com/U2XS/images/flashThumbnails/cell](http://www.sergprotector.com/U2XS/images/flashThumbnails/cell)” +\* +“img.jpg”)  
};

P.S. Special thanks to the Canadian! I didn’t want to ask you to do it again, so I posted a new thread, but you’ve bailed me out plenty
