# Loading images only once for a slideshow?

**URL:** <https://forum.kirupa.com/t/loading-images-only-once-for-a-slideshow/262061>\
**Category:** flash\
**Created:** [June 3, 2008, 2:12am UTC](https://forum.kirupa.com/t/loading-images-only-once-for-a-slideshow/262061 "2008-06-03T02:12:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibsen](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@ibsen](https://forum.kirupa.com/u/ibsen)\
**Post date:** [June 3, 2008, 2:12am UTC](https://forum.kirupa.com/t/loading-images-only-once-for-a-slideshow/262061/1 "2008-06-03T02:12:32Z")

</div>

I’m building a slideshow using only ActionScript, but the computer running it will only have access to the files when the show is first started. So I need to somehow load all the images initially, and call on them from within the file itself from then on. Is there any way to do this?

---

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [June 3, 2008, 2:19pm UTC](https://forum.kirupa.com/t/loading-images-only-once-for-a-slideshow/262061/2 "2008-06-03T14:19:42Z")

</div>

Well… not a very good idea though…  
preloading all images in the begining means a huge wait time for your viewers…??

---

<div class="post-metadata">

**Author:** ![ibsen](https://avatars.discourse-cdn.com/v4/letter/i/c67d28/32.png) [@ibsen](https://forum.kirupa.com/u/ibsen)\
**Post date:** [June 3, 2008, 5:07pm UTC](https://forum.kirupa.com/t/loading-images-only-once-for-a-slideshow/262061/3 "2008-06-03T17:07:01Z")

</div>

It should be OK since this isn’t for the web.

---

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [June 3, 2008, 5:24pm UTC](https://forum.kirupa.com/t/loading-images-only-once-for-a-slideshow/262061/4 "2008-06-03T17:24:09Z")

</div>

Try this thread

> **[Jpeg preloading (I did a search!!)](https://www.kirupa.com/forum/showthread.php?t=25488&highlight=sequential+preloader)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

Basically you just need to loop through an array of images and preload one a time until you are done, then start your application.
