/////Edit: found it
///// seems that I had to call the function without the "()"s
///// weird, but at least I know what was causing the trouble
this gives a result
but if I put the xml in an external file (includes/modules.xml)and run thisPHP Code:var staticXML:XML = new XML("<modules><module><ID>1</ID><Module_title>name 1</Module_title></module></modules>");
trace(staticXML.firstChild);
code:
function init(){
trace("xml loaded successfully");
moduleXML.ignoreWhite = true;
trace (moduleXML.firstChild);
}
var moduleXML = new XML();
moduleXML.load("includes/modules.xml");
moduleXML.onLoad = init(); /// *****should be "init;" not "init();"
I get a big "null".
????![]()
????
TIA


Reply With Quote