# \_global help

**URL:** <https://forum.kirupa.com/t/-global-help/114130>\
**Category:** Uncategorized\
**Created:** [June 25, 2004, 12:11am UTC](https://forum.kirupa.com/t/-global-help/114130 "2004-06-25T00:11:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![methodincharge](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@methodincharge](https://forum.kirupa.com/u/methodincharge)\
**Post date:** [June 25, 2004, 12:11am UTC](https://forum.kirupa.com/t/-global-help/114130/1 "2004-06-25T00:11:20Z")

</div>

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
