# Dynamic Images

**URL:** https://forum.kirupa.com/t/dynamic-images/97474
**Category:** Uncategorized
**Created:** [December 22, 2003, 10:14pm UTC](https://forum.kirupa.com/t/dynamic-images/97474 "2003-12-22T22:14:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![MrMichael](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@MrMichael](https://forum.kirupa.com/u/MrMichael)
#### Post date: [December 22, 2003, 10:14pm UTC](https://forum.kirupa.com/t/dynamic-images/97474/1 "2003-12-22T22:14:56Z")

</div>

I have an image gallery posted online where the images can be linked to from wherever. Instead of having to embed the images and have a large .swf file size, I wish to have the menus and everything using the dynamic images.

So far, I have loaded the images with the actions in a separate layer using the following action script:

this.onLoad = function()  
{  
image01.loadMovie( URL );  
image02.loadMovie( URL );  
…  
…  
(etc.)  
}

The thumbnails are all about 15k. so I don’t care that they all load up at once, but I may find another way to do it with an animated scrolling menu that loads the thumbnails as they are seen… is that possible?

Well, on with the rest…

I can create a transparent button over the dynamic images (using the images themselves as buttons did nothing) to load up full-size images.

The action script on the buttons is as follows:

on( press )  
{  
image01\_main.loadMovie( URL );  
}

You can click on the image once and it’s fine, but when you click on it again, it unloads the image. Then, if you want to click a different button to load a different image, you have to click twice… once to unload the previous image, and then again to load the image that is desired.

I don’t want the image to unload when it is clicked again. And when you click another button for another image, I just want it to load immediately in the place of the other image.

Thanks,

Michael
