Need help - XML Photo Gallery

Hey all.

First off I want to say how great this site is. I just stumbled upon the Flash tutorials today and have been having a blast with them. Really informative and easy to follow. I’m totally an XML noobie and this has been perfect for me to get my feet wet with it. :}

Now onto my problem - I’ve been trying to customize the XML Photo Gallery found here:

http://www.kirupa.com/web/xml/examples/portfolio.html

Files can be found here: http://www.kirupa.com/web/xml/examples/portfolio.zip

What I’d like to change is a couple of things.

  1. I’d like to add text that loads automatically with the file into its own text field. I’ve manged to get it so when you click on an image my new textfield shows, however I can’t seem to get it working without any user input. I’m sure this is really easy and am kind of embarrassed for asking, but I’ve tried so many things and nothing seems to work.

I’d like to add the text data to be added to the XML doc like this if possible (bolded at the bottom):

<portfolio>
<picture title = “Tiny Disk”
thumb = “portfolio_images/thumbs/tinydisk.jpg”
description = “portfolio_text/tinydisk.txt”
image = “portfolio_images/tinydisk.jpg” />

&lt;picture    title        = "Plug"
        thumb    = "portfolio_images/thumbs/plug.jpg"
        description    = "portfolio_text/plug.txt"
        image    = "portfolio_images/plug.jpg" /&gt;
        
&lt;picture    title        = "Disk Collection"
        thumb    = "portfolio_images/thumbs/diskcollection.jpg"
        description    = "portfolio_text/diskcollection.txt"
        image    = "portfolio_images/diskcollection.jpg" /&gt;

</portfolio>
<new text>Text</new text>

Is this doable?

  1. Instead of image link I like to edit it so I can use text links. I haven’t delved into this yet since I’ve been stuck on #1 today but I figure might as well ask since I’m really under time contraints at this point.

Any help will be GREATLY appreciated!

Thanks in advance.