# ...loading multiple external images while

**URL:** https://forum.kirupa.com/t/loading-multiple-external-images-while/189776
**Category:** Uncategorized
**Created:** [June 6, 2006, 5:23am UTC](https://forum.kirupa.com/t/loading-multiple-external-images-while/189776 "2006-06-06T05:23:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![iamdougbell](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@iamdougbell](https://forum.kirupa.com/u/iamdougbell)
#### Post date: [June 6, 2006, 5:23am UTC](https://forum.kirupa.com/t/loading-multiple-external-images-while/189776/1 "2006-06-06T05:23:04Z")

</div>

I’m at a loss folks! I can’t seem find any code or sample .fla’s to help me figure out how to load multiple external images in the background while viewing other already loaded images. Any ideas? Here’s a brief…

In order to keep my file size to a minimum, I housed all my image sources in an external folder for use when needed. The object is for the user to click on a “Project” button which in turn will load sub project images (any where from 6-50). As you already know loading many images at one time can lead to longer download times. What I would like to do is after they click the “Project” main button and view the first image, the other following images are already downloading. Does this make sense?

Thanks in advance for the help!

Best,

Doug

---

<div class="post-metadata">

### Author: ![iamdougbell](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@iamdougbell](https://forum.kirupa.com/u/iamdougbell)
#### Post date: [June 6, 2006, 8:51pm UTC](https://forum.kirupa.com/t/loading-multiple-external-images-while/189776/2 "2006-06-06T20:51:37Z")

</div>

> [@bananas](#):
>
> Do you know how to use XML?

I have no clue! Is there another way to do it using an array and calling the elements later? Here’s what I’ve go so far. Would you be able to shed some light? PLEASE!

I have this action script on my main timeline:

var freight\_array:Array = new Array; //create an array object  
//populate array  
freight\_array[0] = “linkedimages/freight\_10.jpg”;  
freight\_array[1] = “linkedimages/freight\_9.jpg”;  
freight\_array[2] = “linkedimages/freight\_8.jpg”;  
freight\_array[3] = “linkedimages/freight\_7.jpg”;  
freight\_array[4] = “linkedimages/freight\_6.jpg”;  
freight\_array[5] = “linkedimages/freight\_5.jpg”;  
freight\_array[6] = “linkedimages/freight\_4.jpg”;  
freight\_array[7] = “linkedimages/freight\_3.jpg”;  
freight\_array[8] = “linkedimages/freight\_2.jpg”;  
freight\_array[9] = “linkedimages/freight\_1.jpg”;

for (i=0; i\<freight\_array.length; i++){  
container.loadMovie(freight\_array\*);//load each image to a placeholder mc  
}

On the container movie, I am trying to call each image seperately and make the alpha of the unused images 0. I’m not sure how to do this. I thought I could just use this code:

loadMovie(\_root.freight\_array[9]);

It does not work though! Help!

Thanks in advance!

---

<div class="post-metadata">

### Author: ![stringy](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stringy](https://forum.kirupa.com/u/stringy)
#### Post date: [June 6, 2006, 9:27pm UTC](https://forum.kirupa.com/t/loading-multiple-external-images-while/189776/3 "2006-06-06T21:27:49Z")

</div>

> [@iamdougbell](#):
>
> I’m at a loss folks! I can’t seem find any code or sample .fla’s to help me figure out how to load multiple external images in the background while viewing other already loaded images. Any ideas? Here’s a brief…
> 
> In order to keep my file size to a minimum, I housed all my image sources in an external folder for use when needed. The object is for the user to click on a “Project” button which in turn will load sub project images (any where from 6-50). As you already know loading many images at one time can lead to longer download times. What I would like to do is after they click the “Project” main button and view the first image, the other following images are already downloading. Does this make sense?
> 
> Thanks in advance for the help!
> 
> Best,
> 
> Doug

see if this helps

> **[kirupaForum](https://forum.kirupa.com)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

---

<div class="post-metadata">

### Author: ![iamdougbell](https://avatars.discourse-cdn.com/v4/letter/i/5e9695/32.png) [@iamdougbell](https://forum.kirupa.com/u/iamdougbell)
#### Post date: [June 6, 2006, 10:07pm UTC](https://forum.kirupa.com/t/loading-multiple-external-images-while/189776/4 "2006-06-06T22:07:16Z")

</div>

Thanks for the help but I’m still not getting it. Can’t I use my actionscript above and somehow call each element of the array? The first image from the array loads in, so it sorta works?
