# Images loading in photogallery tutorial problem :(

**URL:** <https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655>\
**Category:** Uncategorized\
**Created:** [October 22, 2003, 2:06am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655 "2003-10-22T02:06:59Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashleigh](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Ashleigh](https://forum.kirupa.com/u/Ashleigh)\
**Post date:** [October 22, 2003, 2:06am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/1 "2003-10-22T02:06:59Z")

</div>

Well, I’ve followed this tutorial:

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

And when I play it:

[http://frampa.messiahsoft.net/photogallery.html](http://frampa.messiahsoft.net/photogallery.html)

It does that. It doesn’t load it into the rectangle that I created. o.O I followed everything correctly and I’ve been trying to fix it but can’t.

In advance, 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:** [October 22, 2003, 2:14am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/2 "2003-10-22T02:14:06Z")

</div>

Check the registration point of the movieclip that your images load into. The registration point should be in the upper left corner instead of the middle.

---

<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:** [October 22, 2003, 2:17am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/3 "2003-10-22T02:17:17Z")

</div>

em, lol i’m nuts. i’m new to flash mx so what is the registration point? the circle that shows up in the middle? because if it is, i just tried that and it didn’t work.

---

<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:** [October 22, 2003, 2:18am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/4 "2003-10-22T02:18:42Z")

</div>

The registration point is the little circle that has a black cross in it. It should be in the upper left corner.

If it still doesn’t work then post your file so I can see what’s going on.

---

<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:** [October 22, 2003, 2:21am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/5 "2003-10-22T02:21:36Z")

</div>

em post the whole thing? here’s my main code:

//Code written by sbeener (suprabeener)  
/\*  
i wrote this code, but you can use and abuse it however you like.  
the methods are defined in the order which they occur to make it  
easier to understand.  
\*/  
// variables ------------------------------------------  
// put the path to your pics here, include the slashes (ie. “pics/”)  
// leave it blank if they’re in the same directory  
this.pathToPics = “[http://frampa.messiahsoft.net/cam/](http://frampa.messiahsoft.net/cam/)”;  
// fill this array with your pics  
this.pArray = [“sky1.JPG”];  
this.fadeSpeed = 20;  
this.pIndex = 0;  
// MovieClip methods ----------------------------------  
// d=direction; should 1 or -1 but can be any number  
//loads an image automatically when you run animation  
loadMovie(this.pathToPics+this.pArray[0], \_root.photo);  
MovieClip.prototype.changePhoto = function(d) {  
// make sure pIndex falls within pArray.length  
this.pIndex = (this.pIndex+d)%this.pArray.length;  
if (this.pIndex\<0) {  
this.pIndex += this.pArray.length;  
}  
this.onEnterFrame = fadeOut;  
};  
MovieClip.prototype.fadeOut = function() {  
if (this.photo.\_alpha\>this.fadeSpeed) {  
this.photo.\_alpha -= this.fadeSpeed;  
} else {  
this.loadPhoto();  
}  
};  
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]);  
this.onEnterFrame = loadMeter;  
};  
MovieClip.prototype.loadMeter = function() {  
var i, l, t;  
l = this.photo.getBytesLoaded();  
t = this.photo.getBytesTotal();  
if (t\>0 && t == l) {  
this.onEnterFrame = fadeIn;  
} else {  
trace(l/t);  
}  
};  
MovieClip.prototype.fadeIn = function() {  
if (this.photo.\_alpha\<100-this.fadeSpeed) {  
this.photo.\_alpha += this.fadeSpeed;  
} else {  
this.photo.\_alpha = 100;  
this.onEnterFrame = null;  
}  
};  
// Actions -----------------------------------------  
// these aren’t necessary, just an example implementation  
this.onKeyDown = function() {  
if (Key.getCode() == Key.LEFT) {  
this.changePhoto(-1);  
} else if (Key.getCode() == Key.RIGHT) {  
this.changePhoto(1);  
}  
};  
Key.addListener(this);

the arrow codes don’t matter. they’re right so yeah and they work.

---

<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:** [October 22, 2003, 2:29am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/6 "2003-10-22T02:29:03Z")

</div>

I’m talking about posting your FLA file, not the code.

---

<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:** [October 22, 2003, 2:32am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/7 "2003-10-22T02:32:08Z")

</div>

oh sorry…

it’s not uploading to my FTP.

---

<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:** [October 22, 2003, 2:33am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/8 "2003-10-22T02:33:14Z")

</div>

Zip up your FLA file and attach it to your post. When you post, look at the bottom, there is a drop down menu for you to attach the file.

---

<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:** [October 22, 2003, 2:35am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/9 "2003-10-22T02:35:39Z")

</div>

There is something wrong with my winzip program so I uploaded it to [freewebs.com](http://freewebs.com)

[http://freewebs.com/brokendd/photogallery.fla](http://freewebs.com/brokendd/photogallery.fla)

---

<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:** [October 22, 2003, 2:39am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/10 "2003-10-22T02:39:23Z")

</div>

When I said to move the registration point to the upper left corner I guess you misunderstood me and moved the entire movieclip which is wrong.

To move the registration point, you need to go inside the movieclip and move the contents till the registration is in the upperleft corner.

Here is your file.

---

<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:** [October 22, 2003, 2:42am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/11 "2003-10-22T02:42:52Z")

</div>

I thought that was what I did.

Sorry to be a bother. \>.\<

And thanks, very much. 🙂

---

<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:** [October 22, 2003, 2:44am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/12 "2003-10-22T02:44:11Z")

</div>

no problem. =)

---

<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:** [October 22, 2003, 2:54am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/13 "2003-10-22T02:54:42Z")

</div>

gosh i must be retarded or something. lol. i can’t get the pictures to show up now. [sighs and bangs head on the table]

---

<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:** [October 22, 2003, 2:55am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/14 "2003-10-22T02:55:30Z")

</div>

post one of your image files, let me see if i can get it to load with the file i have here.

---

<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:** [October 22, 2003, 2:57am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/15 "2003-10-22T02:57:27Z")

</div>

watch me post the wrong thing again. lol @ my tiredness.

![](http://frampa.messiahsoft.net/cam/sky1.JPG)

[http://frampa.messiahsoft.net/cam/sky1.JPG](http://frampa.messiahsoft.net/cam/sky1.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:** [October 22, 2003, 3:35am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/16 "2003-10-22T03:35:42Z")

</div>

Ok I went through your file and found code pasted everywhere. I guess you accidently clicked on symbols and applied the code to them.

I cleaned up your file and tested it and it works. Also had to rescale your image for it to fit because it’s huge.

Here’s your file.

---

<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:** [October 22, 2003, 3:52am UTC](https://forum.kirupa.com/t/images-loading-in-photogallery-tutorial-problem/33655/17 "2003-10-22T03:52:27Z")

</div>

Omgoodness! Gosh! Geeze! Thank you SO much! You are the coolest person in the world!! THANK YOU!
