ok . i have managed to get data from a xml-file. this file is generated by a
php file. So on every load I have to get this php file to generated the newest
xml-document. How can i load the PHP-file into my flash-site?
ClauÐio - Flash Developer - www.websigns.com.ar - - 28 Apr 2005 15:09 GMT
your php generates the xml?, well, all u need is cal it with
laodVariables, the php file will run and update your xml.
ClauÐio
LuigiL - 29 Apr 2005 12:48 GMT
You call the php-file from the loadhandler defined in a function that loads the
XML-data.
function initXML();
data_xml:XML=new XML();
data_xml.ignoreWhite=true; //if your XML-file contains white space
data_xml.onLoad=function(success:Boolean){
if(success){
// code to execute
} else {
trace("Error parisng the XML-file");
}
};
data_xml.load("http://www.yourwebsite.com/yourphpfile.php");