# Loading a Series of images

**URL:** <https://forum.kirupa.com/t/loading-a-series-of-images/320160>\
**Category:** flash\
**Created:** [March 15, 2011, 3:40pm UTC](https://forum.kirupa.com/t/loading-a-series-of-images/320160 "2011-03-15T15:40:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Macsy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/macsy/32/3238_2.png) [@Macsy](https://forum.kirupa.com/u/Macsy)\
**Post date:** [March 15, 2011, 3:40pm UTC](https://forum.kirupa.com/t/loading-a-series-of-images/320160/1 "2011-03-15T15:40:23Z")

</div>

Hey  
I need help with a small script to load a series of images (img01,img02 and so on) and to put them all in a MC with each and every img in its own frame.  
That shouldnt be to hard but i cant figure out how to make it.  
All tutorials is fitted for 1 image only…

In my head it looks like this (without correct syntax)

```auto

for(i=0;i<totalImages;i++){
mc.loadImage("img"+i+".jpg")
mc.Addframe
}

```

But of course it aint that easy! Anyone knows how to do this very simple script?
