# Preloader- dynamic images .. total newbie here

**URL:** https://forum.kirupa.com/t/preloader-dynamic-images-total-newbie-here/98416
**Category:** Uncategorized
**Created:** [January 7, 2004, 1:43am UTC](https://forum.kirupa.com/t/preloader-dynamic-images-total-newbie-here/98416 "2004-01-07T01:43:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![duplex](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@duplex](https://forum.kirupa.com/u/duplex)
#### Post date: [January 7, 2004, 1:43am UTC](https://forum.kirupa.com/t/preloader-dynamic-images-total-newbie-here/98416/1 "2004-01-07T01:43:22Z")

</div>

First of all, I promise I have been trying to read old posts and figure this out before I post but… :hangover:

I am make a resume cd for some photography of mine and used the [photo gallery](http://www.kirupa.com/developer/mx/photogallery.htm) tutorial on this site. I have made some changes and am happy with how it works.

Problem is, the images are loaded dynamically so it goes back to the cd everytime I hit “next.”

The code gives sets the path to pics, loads the image names into an array and then displays them with:

MovieClip.prototype.loadPhoto = function() {  
// specify the movieclip to load images into  
var p = \_root.photo;  
//------------------------------------------  
p.\_alpha = 0;  
p.loadMovie(this.pathToPics+this.pArray[this.pIndex]);  
};

I’m a programmer (php) so I can think of some logical ways to do this but I have a lack of understanding of Flash so I’m making a bit of a mess.

What I’m thinking is - preload the array of images into a temp file (?) and then instead of the line p.loadMovie(…) put in _some code_ that load the images from the temp file.

Does this make sense?? Will it work?? Any help appreciated!
