I want to pass xml file path dynamically using flashvars. It works ok in Onrollover and Onrollout events. But not in onClipEvent. Below is the code I am using -
onClipEvent (load)
{
cnetXML = new XML();
cnetXML.ignoreWhite = true;
cnetXML.onLoad=extractData;
var xmlfile = xmlpath;
cnetXML.load(xmlfile);
function extractData(success)
{
rootHandler=this.firstChild.childNodes[23].childNodes[5].firstChild.nodeValue;
if (rootHandler)
gotoAndStop(2);
}
}
If I replace xmlpath in above script with actual link, it works ok. Please let me know what I am missing here?
提前感谢你们!
幼儿园