Okay, I really have no idea why _global doesn’t seem to be working for me but here is my code:
_global.xmlref=null
_global.xmlarray=null
function doload() {
xmlarray=new Array(3);
}
function loadContent() {
var p=page
xmlref=new XML();
xmlref.ignoreWhite=true;
xmlref.onLoad=function(suck) {
if(suck) {
doload();
}
}
xmlref.load§;
}
loadContent()
trace(xmlarray)
Now to me xmlarray should contain Undefined, Undefined, Undefined yet it says null when I execute this. If someone can lead me in the right direction as to how to referenced _globals it would be appreciated. It seems that if dload() is inside the onLoad function then it does not reference globals correctly. And I also tried adding _global to all references but it still does not work. I this a bug or am I doing something wrong? Thanks