Click to See Complete Forum and Search --> : Links from XML ??


mentaleruptions
06-20-2003, 01:26 AM
Hey ive been trying to get links to work from XML to web pages but i cant work it out. Here is my xml code:


<menuitems>
<item title="Figure Drawing">
<images directory="images1">
<imageNode jpegURL="img_0.jpg" thumbURL="tn_img_0.jpg" title="Image 0">Comments on image 0</imageNode>
<imageNode jpegURL="img_1.jpg" thumbURL="tn_img_1.jpg" title="Image 1">Comments on Image 1</imageNode>
</images>
</item>
</menuitems>


The link would go where it says Comments on Image 0 and Comments on Image 1 but i cant get it to work.
The xml file is used to load images into a gallery in flash and when u click the image the Comments will show and i want to add links but cant work out or find out how.
U can find the gallery im working with here:

http://www.flashcomponents.net/component.cfm?nav=2&id=173

Anyone got any Clues ??

Thanks in advance.

Jona
06-20-2003, 01:25 PM
What are you using to process the XML? ColdFusion? PHP? XSLT?

Jona

mentaleruptions
06-20-2003, 01:35 PM
Basicly nothing. The component im using just loads the images and comments direct from an xml file without any other kind of script.
Thats why the component is used so much because its ease of use and stuff.

Does it matter ?? I mean is it a bad idea to just load direct from xml ??
Im new to the scripting/backend of design so im trying to learn what i can.

Thanks again, Mental

Jona
06-20-2003, 02:50 PM
So you are using Flash to extract and read the data from an XML file?

Jona

mentaleruptions
06-20-2003, 03:27 PM
yeah basicly the flash files loads the info from the XML file the way its setup.
U set it in flash to load lets say EXAMPLE.XML and it does the rest.
The gallery loads the images from using the info in the XML file and the comments are then displayed in a text box.
I just thought XML was like html when it came to using links but i guess its harder than that :).

Mental

Jona
06-20-2003, 04:13 PM
So then that would make this a more Flash related question, rather than an XML one, wouldn't it? I mean, since this is Flash, you'll need to have some kind of on(release) function or something to make it act like a link, woulnd't you?

Jona