# Need help making a photo gallery

**URL:** https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577
**Category:** Uncategorized
**Created:** [July 23, 2004, 5:35pm UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577 "2004-07-23T17:35:11Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ajaxx715](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@ajaxx715](https://forum.kirupa.com/u/ajaxx715)
#### Post date: [July 23, 2004, 5:35pm UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/1 "2004-07-23T17:35:11Z")

</div>

Hey everyone,

I’ve been using the tutorial found on [http://www.kirupa.com/developer/mx/photogallery.htm](http://www.kirupa.com/developer/mx/photogallery.htm) to help me make my photo gallery. However, although I did everything the same to a T, it still doesn’t work. I’ve spent forever trying to figure out what’s wrong.

I’ve adjusted the script accordingly to how the tutorial explains, and I even tried using different folders. I know it’s working, because the output isn’t returning any error messages. Something makes me feel that it’s reading but the pictures aren’t being displayed.

I don’t know, I was hoping somebody could help me out. I’d appreciate it, thanks.

AJ

---

<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: [July 24, 2004, 6:00am UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/2 "2004-07-24T06:00:20Z")

</div>

What kind of pics are you using?  
They should be non-progressive jpeg’s;)

scotty(-:  
btw Welcome to kirupa=)

---

<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: [July 24, 2004, 3:59pm UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/3 "2004-07-24T15:59:21Z")

</div>

I’m using the same tutorial and I’m having the same issue. Also once I get it working how do you get the photo gallery to start changing images automatically instead of using te buttons to change images?

---

<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: [July 24, 2004, 4:12pm UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/4 "2004-07-24T16:12:54Z")

</div>

Have a look for **setInterval()**😉

scotty(-:

---

<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: [July 24, 2004, 7:13pm UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/5 "2004-07-24T19:13:16Z")

</div>

Thanks Scotty for both fixes. I “thought” I had my jpegs saved as non-progressive. I changed them to basline in Photoshop and it loads now and it plays automatically.

---

<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: [July 24, 2004, 7:19pm UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/6 "2004-07-24T19:19:34Z")

</div>

welcome:thumb:

---

<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: [July 25, 2004, 6:52pm UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/7 "2004-07-25T18:52:51Z")

</div>

Well, I thought I had it playing automatically. Where does the setInterval need to be? I’m not that good with 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: [July 25, 2004, 7:48pm UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/8 "2004-07-25T19:48:55Z")

</div>

At the end of your code put this

```auto
setInterval(this, "changePhoto", 3000, 1);

```

the 3000 is the time in msecs:)

scotty(-:

---

<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: [July 25, 2004, 8:14pm UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/9 "2004-07-25T20:14:20Z")

</div>

I almost had it. I did not have the changePhoto in the setInterval. Thanks…working.

---

<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: [July 25, 2004, 8:18pm UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/10 "2004-07-25T20:18:15Z")

</div>

welcome;)

---

<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: [July 27, 2004, 9:58pm UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/11 "2004-07-27T21:58:22Z")

</div>

Hi, scotty!

I got similar problem with as ajaxx’s. i followed the same tutorial and couldn’t make it work.:-/ at some point, the photo actually showed up, but the button didn’t work. and then the button work, but the photo wasn’t in the right place (it always showed up at the bottom of the masked layer).

attached what i got. hope u can help me. thanks a lot!

---

<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: [July 28, 2004, 5:13am UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/12 "2004-07-28T05:13:15Z")

</div>

Thank you so much for this tutorial… it’s a life saver!!!  
Well, it works fine for me … but what I want to know is:

I have some humongous images … over 1000\*1000 pixles in dimension.  
How do we make the code resize each image to fit within the mask ?  
Don’t tell me I have to resize every single picture!!!

[http://www.kirupa.com/developer/mx/photogallery.htm](http://www.kirupa.com/developer/mx/photogallery.htm)

---

<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: [July 28, 2004, 6:29am UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/13 "2004-07-28T06:29:35Z")

</div>

@liltea, the photo mc’s registrationpoint should be topleft, you had it in middle left **and** you’ve scaled it, so the picture gets scaled as well:)  
The pictures in your folder had a .jpg.jpg extension and if you use text in your buttons, uncheck the selectable option…  
I’ve attached the fixed fla;)

scotty(-:

---

<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: [July 28, 2004, 6:33am UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/14 "2004-07-28T06:33:08Z")

</div>

@axelmurillo, you can scale them after the picture is fully loade, so just before the fadeIn function, but…why load such a big picture?  
If resize them before you load them (in eg Photoshop) the loading time will be much less and your audience much more happy;)

scotty(-:

---

<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: [July 28, 2004, 2:29pm UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/15 "2004-07-28T14:29:01Z")

</div>

Thanks a lot, scotty!

but, i can’t open the .swf file… it says “unexpected file format” ☹

---

<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: [July 28, 2004, 4:13pm UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/16 "2004-07-28T16:13:24Z")

</div>

Here it is again:)

scotty(-:

---

<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: [July 28, 2004, 6:47pm UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/17 "2004-07-28T18:47:26Z")

</div>

aaah… Thanks a lot!! 😃

---

<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: [July 28, 2004, 7:14pm UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/18 "2004-07-28T19:14:13Z")

</div>

no problem:thumb:

---

<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: [July 30, 2004, 4:56am UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/19 "2004-07-30T04:56:06Z")

</div>

> [@scotty](#):
>
> @axelmurillo, you can scale them after the picture is fully loade, so just before the fadeIn function, but…why load such a big picture?  
> If resize them before you load them (in eg Photoshop) the loading time will be much less and your audience much more happy;)
> 
> scotty(-:

Oh wow … my audience won’t mind!!! (and we’ll all work so much less!!)  
see, i have about 500 images in a bunch of different albums… about 30-50  
and i wanna upload them all using this tutorial.  
could you please tell me how to scale it after it loads? i don’t know  
how to edit actionscript. i know cut and paste!  
🐇  
i appreciate your help so!!!

thanks

---

<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: [July 30, 2004, 6:47am UTC](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577/20 "2004-07-30T06:47:06Z")

</div>

Change the loadMeter prototype in this:

```auto
MovieClip.prototype.loadMeter = function() {
	var i, l, t;
	l = this.photo.getBytesLoaded();
	t = this.photo.getBytesTotal();
	if (t>0 && t == l && this.photo._width>0 && this.photo._height>0) {
		//change the "25" to the value you want
		this.photo._xscale = this.photo._yscale=25;
		this.onEnterFrame = fadeIn;
	} else {
		trace(l/t);
	}
};

```

?

scotty(-:

[Next page](https://forum.kirupa.com/t/need-help-making-a-photo-gallery/58577.md?page=2)
