Actionscript on XML lodaded images

I have a slide show displaying random images from an xml file, as the intro for my portofolio.

What I need:

When an image is clicked, I want the user to be redirected to the categorie of the clicked image.

My ideas so far…
Lets say I have:


<gallery>
<image path="images/1.jpg"  category="a"/>
<image path="images/2.jpg" category="b"/>
<image path="images/3.jpg" category="c"/>
</gallery>

How can I use these category labels into flash to direct the user where it should?
Maybe a script that creates an empty MC behind the slideshow which behaves like a button? Don’t really know how to properly explain it, but could this empty MC have a function that goes like: onRelease () function = _root.menu1.gotoandStop = ("[categorie]");

where [categorie] is loaded from the XML file on the currently shown image.

I think that’s the proper mechanics behind what I’m trying to achieve… I just don’t really know how to grammatically put it together.

Thanks

im workin on somethin give me a few mins

ok try this…I think this is what you are talking about.

Amazing!

I guess I was at the right place at the right moment.
Thanks a lot.

I will post the progress so other user can follow.

good deal!

Could you please take a look…
Your code is just exactly what I need. Once integrated with the slideshow I have, I can find my way around and code the rest based on the trace test function you made.

I tried to integrate them together… I’m juste losing my patience.
The original fla is attached.

This is so heading in the right direction, I don’t know what I am doing wrong.

[quote=artriste;2341777]Could you please take a look…
Your code is just exactly what I need. Once integrated with the slideshow I have, I can find my way around and code the rest based on the trace test function you made.

I tried to integrate them together… I’m juste losing my patience.
The original fla is attached.

This is so heading in the right direction, I don’t know what I am doing wrong.[/quote]

Hmm when I compile your movie I get nothing…not even errors. What exactly is the problem?

nevermind I just had some really small images in there lol…but whats the problem? You just need my code incorporated into this or what?

try this one…I added a few lines of code…I commented them so you should be able to find them

Thank you so much for your time.

I provided you with the original file, cause I knew both yours and my Random Slideshow code were working properly. I tried to incorporated them in all the ways I could think of. Actually, I wasn’t getting errors either, it just didn’t work. I’m glad you stopped by my post, this was exactly what I needed. I can’t wait to finish my project.

I’ll show you guys