Hi,
I have the following XML ( I know I am wrong)
[XML]
<title> http://www.somedomain.com/somepic.jpg </title>
<attribute>1</attribute>
<title> http://www.somedomain.com/somepic.jpg </title>
<attribute>2</attribute>
<title> http://www.somedomain.com/somepic.jpg </title>
<attribute>3</attribute>
<title> http://www.somedomain.com/somepic.jpg </title>
<attribute>4</attribute>
<title> http://www.somedomain.com/somepic.jpg </title><attribute>5</attribute>
[/XML]
My idea is to have a flash banner that rotates automatically within these 5 options. On the Flash side, I am using a Loader component with the following codeā¦
var webloadString:String;
var myxml=new XML();
myxml.ignoreWhite= true;
myxml.onLoad = function(success)
{
if(success)
{
var texttoload=myxml.firstChild.firstChild;
trace(texttoload);
-- I need the for loop to go through each of the titles and extract the URL
-- and pass that to the Loader component to load the image.
}
}
myxml.load("data.xml");
Please help. The attribute section is to give that image a category.