# Help with kirupa xml flash photo gallery

**URL:** https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883
**Category:** flash
**Created:** [March 30, 2006, 9:59pm UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883 "2006-03-30T21:59:30Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![alcinoe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/alcinoe/32/2314_2.png) [@alcinoe](https://forum.kirupa.com/u/alcinoe)
#### Post date: [March 30, 2006, 9:59pm UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/1 "2006-03-30T21:59:30Z")

</div>

Hi I am having problems formatting the XML Flash photo gallery.

I can’t seem to get the photos to center on the page. Some of my photos are vertical and others horizontal, and they are all pushed to the left.

I don’t want to make all the photos the same width. Is there any way to use css to style the xml? Or is there some other way to do it?

Here is the html: [http://www.seniorspin.com/alcinoe/test/test.html](http://www.seniorspin.com/alcinoe/test/test.html)  
Here is the fla:  
[http://www.seniorspin.com/alcinoe/test/xml\_photogallery\_user\_mx.fla](http://www.seniorspin.com/alcinoe/test/xml_photogallery_user_mx.fla)

Also, if anyone notices any other problems with the gallery,please let me know. This is only the second thing I’ve done in Flash, and I may have made some mistakes when I changed things.  
Thanks, Elizabeth

---

<div class="post-metadata">

### Author: ![RevoGiant](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@RevoGiant](https://forum.kirupa.com/u/RevoGiant)
#### Post date: [March 30, 2006, 10:40pm UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/2 "2006-03-30T22:40:25Z")

</div>

Well first I think you should definately use the Kirupa slideshow with thumbnails if you are showing a photography gallery. I built [http://www.leecherry.com](http://www.leecherry.com) with it.

Second if you place yoru container in the right spot they will align in the right spot.

hope that helps.

---

<div class="post-metadata">

### Author: ![alcinoe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/alcinoe/32/2314_2.png) [@alcinoe](https://forum.kirupa.com/u/alcinoe)
#### Post date: [March 30, 2006, 10:43pm UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/3 "2006-03-30T22:43:42Z")

</div>

The person that I am doing this for does not want any thumbs. I don’t understand about the container…The problem is that a photo that takes up the entire width will center, but one that is narrower will go to the left.

---

<div class="post-metadata">

### Author: ![alcinoe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/alcinoe/32/2314_2.png) [@alcinoe](https://forum.kirupa.com/u/alcinoe)
#### Post date: [March 30, 2006, 10:45pm UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/4 "2006-03-30T22:45:43Z")

</div>

I like your site, by the way  
Elizabeth

---

<div class="post-metadata">

### Author: ![RevoGiant](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@RevoGiant](https://forum.kirupa.com/u/RevoGiant)
#### Post date: [March 30, 2006, 11:08pm UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/5 "2006-03-30T23:08:37Z")

</div>

well try using this : [http://www.gertdesign.info/kirupa/resize\_height.zip](http://www.gertdesign.info/kirupa/resize_height.zip) and just take out the thumbails. That way you have a nice transition between each photo and you can update it easy too.

Hope that helps:) Let me know if you wanna stick to no transition though.

---

<div class="post-metadata">

### Author: ![alcinoe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/alcinoe/32/2314_2.png) [@alcinoe](https://forum.kirupa.com/u/alcinoe)
#### Post date: [March 30, 2006, 11:39pm UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/6 "2006-03-30T23:39:36Z")

</div>

The photos are just supposed to fade in.

I saw that file before on another thread, but the only part of it I like is the way that the photos are centered. I don’t understand which part of the code made them center. I want my navigation to stay where it is centered at the top and not move.

Thanks, Elizabeth

---

<div class="post-metadata">

### Author: ![RevoGiant](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@RevoGiant](https://forum.kirupa.com/u/RevoGiant)
#### Post date: [March 31, 2006, 12:38am UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/7 "2006-03-31T00:38:22Z")

</div>

do you want me to make this one look like yours for you only with out the thumbnails?

---

<div class="post-metadata">

### Author: ![alcinoe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/alcinoe/32/2314_2.png) [@alcinoe](https://forum.kirupa.com/u/alcinoe)
#### Post date: [March 31, 2006, 1:38am UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/8 "2006-03-31T01:38:27Z")

</div>

That would be great, Revo. I have been trying for days to find the way to do this.

Elizabeth

---

<div class="post-metadata">

### Author: ![drake0013](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@drake0013](https://forum.kirupa.com/u/drake0013)
#### Post date: [March 31, 2006, 3:12am UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/9 "2006-03-31T03:12:47Z")

</div>

I think its a registration point problem. Lock all your layers, then unlock “movieclip” and move that dot to the middle. I’m pretty sure that’s how you fix it.

---

<div class="post-metadata">

### Author: ![alcinoe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/alcinoe/32/2314_2.png) [@alcinoe](https://forum.kirupa.com/u/alcinoe)
#### Post date: [March 31, 2006, 4:33am UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/10 "2006-03-31T04:33:52Z")

</div>

I can’t move the registration point because there really isn’t any image there. The images load dynamically and the left top edge of each meets the registration point. I don’t know how to change this

---

<div class="post-metadata">

### Author: ![drake0013](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@drake0013](https://forum.kirupa.com/u/drake0013)
#### Post date: [March 31, 2006, 5:16am UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/11 "2006-03-31T05:16:27Z")

</div>

Unlock that layer, then move the circle thats on the left to the middle.

---

<div class="post-metadata">

### Author: ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)
#### Post date: [March 31, 2006, 7:03am UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/12 "2006-03-31T07:03:34Z")

</div>

Place your mc ‘picture’ where you want to have your center, then this should work

```auto
var cx = picture._x;
var cy = picture._y;
this.onEnterFrame = function() {
    filesize = picture.getBytesTotal();
    loaded = picture.getBytesLoaded();
    preloader._visible = true;
    preloader.preload_bar._xscale = 100*loaded/filesize;
    if (picture._width) {
        preloader._visible = false;
        if (picture._alpha<100) {
            picture._alpha += 10;
        }
        picture._x = cx-picture._width/2;
        picture._y = cy-picture._height/2;
    }
};

```

(skip the old this.onEnterFrame code)

scotty(-:

---

<div class="post-metadata">

### Author: ![RevoGiant](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@RevoGiant](https://forum.kirupa.com/u/RevoGiant)
#### Post date: [April 1, 2006, 8:55am UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/13 "2006-04-01T08:55:26Z")

</div>

lemme know if that didnt do the trick and ill help you.

---

<div class="post-metadata">

### Author: ![RevoGiant](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@RevoGiant](https://forum.kirupa.com/u/RevoGiant)
#### Post date: [April 1, 2006, 11:03am UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/14 "2006-04-01T11:03:04Z")

</div>

ps…scotty you have an AMAZING amount of posts good buddy. I am impressed to say the least. You are always so helpfull!

---

<div class="post-metadata">

### Author: ![alcinoe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/alcinoe/32/2314_2.png) [@alcinoe](https://forum.kirupa.com/u/alcinoe)
#### Post date: [April 3, 2006, 9:04pm UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/15 "2006-04-03T21:04:33Z")

</div>

Thanks, guys.

Scotty, you really are amazing. I have been searching for an answer and trying to solve this for so long. Thank you so much. It worked perfectly. It just took me a little while to figure out how to make the y not centered so that the pictures were all aligned at the top but still centered horizontally.

Here is the finished page (HTML) [http://www.seniorspin.com/alcinoe/PortraitGallery/portraitsgallery.html](http://www.seniorspin.com/alcinoe/PortraitGallery/portraitsgallery.html)

and the FLA: [http://www.seniorspin.com/alcinoe/PortraitGallery/portraits.fla](http://www.seniorspin.com/alcinoe/PortraitGallery/portraits.fla)

and everything zipped: [http://www.seniorspin.com/alcinoe/PortraitGallery/PortraitGallery.zip](http://www.seniorspin.com/alcinoe/PortraitGallery/PortraitGallery.zip)

I will leave everything there in case anyone else wants to make a gallery like this. Please let me know if you see anything dumb there…

Thank you so much again.

Elizabeth

---

<div class="post-metadata">

### Author: ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)
#### Post date: [April 4, 2006, 5:29am UTC](https://forum.kirupa.com/t/help-with-kirupa-xml-flash-photo-gallery/183883/16 "2006-04-04T05:29:15Z")

</div>

No problem and thanks for posting the result 🙂

scotty(-:
