PDA

View Full Version : Photo Gallery Using XML and Flash



FrankieB
April 21st, 2005, 10:04 PM
Just a question.

I did this tutoral for a photo gallery.

http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm

The gallery swf I have is loaded into another swf. My descriptions show and number of pictures but not my images. Everything is placed correctly.

How do i get them to show?

Frankie B

Lindquist
April 21st, 2005, 10:08 PM
Please attach your .fla and XML files so we can get an idea of what you're working with.

-L

FrankieB
April 21st, 2005, 11:59 PM
Heres the XML



<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>images/hs/001.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/002.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/003.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/004.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/005.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/006.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/007.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/008.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/009.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/010.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/011.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/012.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/013.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/014.jpg</image>
<caption>Structure</caption>
</pic>
<pic>
<image>images/hs/015.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/016.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/017.jpg</image>
<caption>Hospital Scene</caption>
</pic>
<pic>
<image>images/hs/018.jpg</image>
<caption>Structure</caption>
</pic>
</images>


I actually built another gallery with different sized pictures yesterday and it all worked perfect. There isn't much difference between this .fla and yesterdays except the animation in this .fla...but even when i removed the animation it still wouldnt work.

Lindquist
April 22nd, 2005, 01:08 AM
I think I see where the problem may lie.

In the XML, your path to your pictures is the following:
images/hs/00x.jpg

Are your pictures inside the hs folder, inside the images folder that should be in the same place as your .fla?

Your .fla worked fine for me after I constructed the folders.

-L

scotty
April 22nd, 2005, 02:50 AM
Are your pictures of a non-progressive format?

scotty(-:

FrankieB
April 22nd, 2005, 05:16 PM
non-progessive format?

no all the images are placed in the right spots...but scotty what do you mean progressive format? cus this script works with other pictures, just not the ones i need to be used.

scotty
April 22nd, 2005, 05:51 PM
Flash can't handle progressive jpg's...
If you save for web in Photoshop, uncheck the 'progressive' box.
So what you can do is resave them;)

scotty(-:

FrankieB
April 22nd, 2005, 05:57 PM
Excellent!!! Scotty I LOVE YOU :love:

Lindquist
April 22nd, 2005, 06:50 PM
Nice catch. You must've run into this problem before;)
Flash can't handle progressive jpg's...
If you save for web in Photoshop, uncheck the 'progressive' box.
So what you can do is resave them;)

scotty(-:

-L

scotty
April 23rd, 2005, 01:37 AM
no problem=)

@Lindquist, too often :lol: it's an issue that's not very well documentated, but pictures not showing up is most of the times or the path (like you suggested) or the progressive thingy;)

scotty(-: