# Loading multiple jpg's into one container with loop

**URL:** <https://forum.kirupa.com/t/loading-multiple-jpgs-into-one-container-with-loop/280131>\
**Category:** Uncategorized\
**Created:** [January 23, 2009, 4:07am UTC](https://forum.kirupa.com/t/loading-multiple-jpgs-into-one-container-with-loop/280131 "2009-01-23T04:07:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![junta](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@junta](https://forum.kirupa.com/u/junta)\
**Post date:** [January 23, 2009, 4:07am UTC](https://forum.kirupa.com/t/loading-multiple-jpgs-into-one-container-with-loop/280131/1 "2009-01-23T04:07:27Z")

</div>

Hi, here is my situation. I have multiple thumbnails and when you click on one thumbnail I want the larger image to externally load into a container. When you click on another thumbnail I want the current large image to fade out and the new image externally load in. Now I can handle this, but I am trying to make everything easier by not reproducing the same loadMovie code over and over again for every thumbnail.

I assume I do this by using some sort of loop and vars, but this is pushing my abilities of Action Script. Can anyone point me to a good tutorial, that is easy to follow and understand for a new Action Script sort of person?? I have searched and can’t find anything I can follow and understand very well…thank you very much!

steve.
