Help with kirupa xml flash photo gallery

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
Here is the 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

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 with it.

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

hope that helps.

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.

I like your site, by the way
Elizabeth

well try using this : 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.

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

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

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

Elizabeth

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.

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

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

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

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(-:

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

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

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

and the FLA: http://www.seniorspin.com/alcinoe/PortraitGallery/portraits.fla

and everything zipped: 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

No problem and thanks for posting the result :slight_smile:

scotty(-: