# Photo Gallery?

**URL:** https://forum.kirupa.com/t/photo-gallery/16449
**Category:** flash
**Created:** [March 25, 2003, 7:17am UTC](https://forum.kirupa.com/t/photo-gallery/16449 "2003-03-25T07:17:52Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![digitalxwitch](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@digitalxwitch](https://forum.kirupa.com/u/digitalxwitch)
#### Post date: [March 25, 2003, 7:17am UTC](https://forum.kirupa.com/t/photo-gallery/16449/1 "2003-03-25T07:17:52Z")

</div>

What’s the best way of doing a photo gallery in flash?  
I’ve looked through the photo gallery tutorial on kirupa, but I need to be able to make thumbnails of them first and then click to see bigger images…  
I dont know what’s the best way of doing this…  
the more images I have in my gallery file, the bigger the file is!

What’s a more efficient way of doing this? 😊

thanks everyone!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 25, 2003, 7:28am UTC](https://forum.kirupa.com/t/photo-gallery/16449/2 "2003-03-25T07:28:15Z")

</div>

Dynamically via “XML” or “PHP” or you can just loadMovieNum() each .jpg from the server on demand so they don’t have to be loaded in advance.

[\>\>\>LOOK in Here and scrll down to “Images and Video”\<\<\<](http://www.macromedia.com/support/flash/technotes.html)

readReadread~werkWerkwerk

there is a couple of great tutorials within Kirupa on slide shows…use the “SEARCH” box above …seek and ye shall find…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 25, 2003, 9:08am UTC](https://forum.kirupa.com/t/photo-gallery/16449/3 "2003-03-25T09:08:21Z")

</div>

Hi RelandR!  
Thanks for your reply…so when I use ‘loadmovienum’ how do I get it to load where I want?

I tried doing something like this:

on (release) {  
\_root.createEmptyMovieClip(“container”, 0);  
loadMovieNum(“gallerypics/set1\_01.jpg”, “container”);  
container.\_x = 150 ;  
container.\_y = 20 ;  
}

but it pops up the image in a new window… what am i doing wrong??

Please explain! 🙂

thank you!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 25, 2003, 10:07am UTC](https://forum.kirupa.com/t/photo-gallery/16449/4 "2003-03-25T10:07:17Z")

</div>

Howdy…

Use loadMovie() function instead of loadMovieNum() function… 😉  
Also, you will need a routine that will check if your JPEG file is fully loaded or not so that you can change the property of its container movieclip…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 25, 2003, 11:29am UTC](https://forum.kirupa.com/t/photo-gallery/16449/5 "2003-03-25T11:29:11Z")

</div>

:hair:  
I did try using loadmovie instead of loadmovienum…but when I did that, I didnt get anything loaded… ARGH!!! FRUSTRATED!!! I HATE FLASH!! :\*( help help help please!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 25, 2003, 11:48am UTC](https://forum.kirupa.com/t/photo-gallery/16449/6 "2003-03-25T11:48:10Z")

</div>

make sure your file is in non-progressive **jpg** format. gif, png, bmp… won´t work.

the command should look like this:  
[AS]  
loadMovieNum(“yourFile.jpg”, level);

// or

loadMovie(“yourFile.jpg”, “target”);  
[/AS]

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 25, 2003, 6:01pm UTC](https://forum.kirupa.com/t/photo-gallery/16449/7 "2003-03-25T18:01:31Z")

</div>

ok thanks everyone for helping me with this…  
this’ll be the last question for this stupid gallery…I swear! ☹

I finally got the images to load properly using the ‘loading techniques’ tutorial…but now how do I unload it? When you want to go to other sections of the website, after viewing the photogallery, that last picture you just viewed stays on the website…how do I get rid of it?

Do I use something like this?

on (Press) {  
unloadMovie(“jpg name”);

On all my navigation buttons? But if I do that, how do I unload whatever jpg is currently on the screen? Know what I mean?

thanks a bunch!!!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 25, 2003, 6:25pm UTC](https://forum.kirupa.com/t/photo-gallery/16449/8 "2003-03-25T18:25:28Z")

</div>

depends…

how are you loading them in the first place: levels or target?

levels:  
unloadMovieNum(1);

* * *

target:  
unloadMovie(“yourFile.jpg”);

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 25, 2003, 9:17pm UTC](https://forum.kirupa.com/t/photo-gallery/16449/9 "2003-03-25T21:17:11Z")

</div>

This is what I have:

on (release) {  
\_root.createEmptyMovieClip(“container”,1);  
\_root.container.loadMovie(“gallerypics/set1\_01.jpg”);  
\_root.container.\_x = 9 ;  
\_root.container.\_y = 77;

\_root.onMouseDown = function () {  
startDrag (“container”,false) ;  
}  
\_root.onMouseUp = function () {  
stopDrag () ;  
}  
}

Which I got from the loading tutorial…  
I can use:  
unloadMovie(“yourFile.jpg”);  
On all of my navigation buttons, but there’s no way I can know which jpg file they are on in order to unload that specific one… Does that make sense? How do I unload no matter which jpg file they are on? :hangover:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 25, 2003, 9:20pm UTC](https://forum.kirupa.com/t/photo-gallery/16449/10 "2003-03-25T21:20:50Z")

</div>

try this:

\_root.container.removeMovieClip();

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 25, 2003, 9:41pm UTC](https://forum.kirupa.com/t/photo-gallery/16449/11 "2003-03-25T21:41:23Z")

</div>

:beam:

THANK YOU GUIG0!!!

I actually used

on (release) {  
\_root.container.unloadMovie();  
}

but the \_root.container was what got me…I didnt know what I was supposed to do!

Thank you all sooooo very much!!! :love:

I still hate flash tho… ;( LOL

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 25, 2003, 9:49pm UTC](https://forum.kirupa.com/t/photo-gallery/16449/12 "2003-03-25T21:49:56Z")

</div>

LOL 😛

that´s ok… sometimes i hate it oo :crazy:

you´re welcome, i´m glad to help =)
