Hey Im using AS2/cs3
Ok so basicaly I will have a bunch of questions in dealing with xml in this thread. First problem, I cant seem to get my images to display properly.
this is what im doing.
my xml
[LEFT]
<?xml version="1.0" encoding="ISO-8859-1"?>
<icons>
<image name="icon1"><![CDATA[icons/poolTab.swf]]></image>
<image name="icon2"><![CDATA[icons/couch2Seat.swf]]></image>
<image name="icon3"><![CDATA[icons/poolTab.swf]]></image>
<image name="icon2"><![CDATA[icons/couch2Seat.swf]]></image>
</icons>
[/LEFT]
MyAS
[LEFT]
var myXML:XML = new XML();
myXML.ignoreWhite=true;
myXML.load("xmlphoto.xml");
myXML.onLoad = function(success) {
if (success) {
var myImage = myXML.firstChild.childNodes ;
for (i=0; i<myImage.length; i++) {
var imageNumber = i+1;
var imageName = myImage*.attributes.title;
var imageURL = myImage*.firstChild.nodeValue;
trace ("My image number "+imageNumber+" is titled "+imageName+" and its URL is "+imageURL+".")
picHolder.loadMovie(imageURL, 1);
}
}
};
[/LEFT]
I can trace the nodes fine but they all load on top of eachother and I would like to have them in a vertical line (acually 2 vertical lines but one thing at a time i guess)
Any help would be great.