First steps, can't load externe file
/////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
PHP Code:
var staticXML:XML = new XML("<modules><module><ID>1</ID><Module_title>name 1</Module_title></module></modules>");
trace(staticXML.firstChild);
but if I put the xml in an external file (includes/modules.xml)and run this
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".
????:confused: :confused:????
TIA