I am just trying to test the system to see if flash would work, i have a file called date.php, which was originally just to generate today's date, but i made it into an xml thing instead
<?PHP
$line[]="one";
$line[]="two";
$line[]="three";
echo "<?xml version=\"1.0\"?>\n";
echo "<products>\n";
while(list($each) = each($line)){
echo "<item>" . $line[$each] . "</item>\n";
}
echo "</products>\n";
?>
then, in flash I have:
theList reffers to an object i have in flash that is to be populated with the xml
var theXML:XML = new XML();
theXML.ignoreWhite = true;
theXML.onLoad = function(){
var nodes = this.firstChild.childNodes;
for (i=0;i<nodes.length;i++){
thList.addItem(nodes.firstChild.nodeValue,i);
}
}
theXML.load("date.php");
this code give me a blank result