# Loading Images one by one

**URL:** <https://forum.kirupa.com/t/loading-images-one-by-one/312674>\
**Category:** flash\
**Created:** [August 10, 2010, 9:57am UTC](https://forum.kirupa.com/t/loading-images-one-by-one/312674 "2010-08-10T09:57:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivefree](https://avatars.discourse-cdn.com/v4/letter/v/f05b48/32.png) [@vivefree](https://forum.kirupa.com/u/vivefree)\
**Post date:** [August 10, 2010, 9:57am UTC](https://forum.kirupa.com/t/loading-images-one-by-one/312674/1 "2010-08-10T09:57:19Z")

</div>

I’m writing an Action Script program that allows the viewer to click through a series of images one by one. The SWF file will load up to 50 images at a time at approximately 300k each. I don’t want the viewer to have to wait for all the images to load until he can start viewing.

Is it possible to load the first image so that it pops up right away then load the following images one after another? The idea is that as the viewer is looking at image 1, image 2 is loading, etc… How is this done?

Here’s what I have. Right now, nothing shows until everything is loaded:

```auto

            for(var i:Number = 0; i < count; i++)
            {
                //Creates Array of URLRequests
                var pathToPage:String = folder + "/" + (i+1) + ".jpg";
                _pageReqArr* = new URLRequest(pathToPage);
                
                //Creates Array of Loaders
                _pageLoaderArr* = new Loader();
                _pageLoaderArr*.load(_pageReqArr*);
                
                //Adds Loaded Images to Stage
                this.addChild(_pageLoaderArr*);
          }

```
