# \[MX2004\] Function

**URL:** <https://forum.kirupa.com/t/mx2004-function/82389>\
**Category:** flash\
**Created:** [March 10, 2005, 12:46am UTC](https://forum.kirupa.com/t/mx2004-function/82389 "2005-03-10T00:46:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kBisk](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@kBisk](https://forum.kirupa.com/u/kBisk)\
**Post date:** [March 10, 2005, 12:46am UTC](https://forum.kirupa.com/t/mx2004-function/82389/1 "2005-03-10T00:46:57Z")

</div>

I have a variable \*\*img\_total \*\*(total images), which represents an integer from 1 to 999, etc. I need a function to use this number (say img\_total=10) and effect all the images from 1-10 (ex. 10-1, 10-2, 10-3, etc up to 10-9). The function I need this to work on is:

function load\_thumbs (i\_total){  
eval(“i\_images.i\_”+i\_total+".img").loadMovie(“t\_img/”+eval(“i\_”+i\_total)+".jpg");  
}

where \*\*i\_total \*\*is ideally some form of range for 1 up to img\_total.

Any help would be great.
