# Need a good method for this - loading thumbnail + largePic - matching them to another

**URL:** <https://forum.kirupa.com/t/need-a-good-method-for-this-loading-thumbnail-largepic-matching-them-to-another/312856>\
**Category:** flash\
**Created:** [August 14, 2010, 3:09am UTC](https://forum.kirupa.com/t/need-a-good-method-for-this-loading-thumbnail-largepic-matching-them-to-another/312856 "2010-08-14T03:09:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jany](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@jany](https://forum.kirupa.com/u/jany)\
**Post date:** [August 14, 2010, 3:09am UTC](https://forum.kirupa.com/t/need-a-good-method-for-this-loading-thumbnail-largepic-matching-them-to-another/312856/1 "2010-08-14T03:09:02Z")

</div>

I am loading 20 thumbnails.  
I am loading 20 large pictures of the thumbnails.  
Thumbs load first, and are pushed to thumbArray  
Large pics load second, pushed into largePicArray

They all load at different times. So I can’t just throw them in their own array, and them call upon them by their elements. So I can’t push 20 thumbs to array1, and 20 large pics to array2, and hope that their elements are in the same order. It won’t happen.

So my Q is this. What is the easiest way to place them in the same element order after they all have loaded? So that, for example, “thumb17.jpg” can be in any element of its thumbArray, and then “largePic17.jpg” would be in the same element position, in largePicArray.  
If “thumb17.jpg” is in element 5 of thumbArray, I need largePic17.jpg to be in element 5, in largePicArray.

I have a few ideas, but I want to hear ideas. Maybe you know a nice, easy route? If you have any ideas, please let me know :flower:

tyty much! :piercings:
