guys i have a question about XML, see here is a XML i’ve created:
[AS]
<?xml version=“1.0” ?>
<links>
<link image = “launch.jpg” title = “New Website Predicted to Change the World” date = “Wednesday, May 30, 2007”/>
<link image = “change.jpg” title = “New Website Changed the World” date = “Wednesday, June 4, 2007”/>
</links>
[/AS]
as you can see, if i want any of them called up in flash i’ll use this:
[AS]
newPiece.text1.text = xmlPath.attributes.title+"";
[/AS]
now the question, let’s say i’m in the first attribute in XML, how do i change the image in flash without moving to another attribute?
in other words, in the first <link image=“launch.jpg”… how do i create an array for the image like *launch.jpg,launch2.jpg…*and how do i call it in flash?
i’m doing this because each XML attribute is a photo gallery, i can’t just an attribute for each and every image.
any of you guys have any idea? i’m thinking this should be easy.
i’m new to XML:P