Using this method in functions
Hi guys,
I'm experimenting with the id method and I can't get it to work inside a function. please see below code example.
myXML= new XML ();
myXML.ignoreWhite = true
myXML.onLoad=handleLoad;
myXML.load("menu.xml");
function handleLoad(status){
status ? processXML() : trace ("XML not parsed.");
}
function processXML(nodeID){
for (i=0;i < myXML.nodeID.childNodes.length;i++){
trace (myXML.nodeID.childNodes[i]);
}
}
processXML ("tools");
If i hard code the nodeID to "tools" for exmple everythig works fine but when passing it as a param in a function it doesn't. :(
Any ideas?
Thanks in advance,
Splashy