Arrays in a function HELP!

I having trouble accessing an array that I created in a function, outside of the function.


myData.onLoad = function(){
   var i;
   for (i=0; i<myData.idCount; i++) {
        //Current Item
	var current_item:Array = new Array();
	current_item* = myData["id"+i];
        //this trace works
        trace(current_item*);
    }
}

//this trace does not work!
trace(current_item*);		

I’m guessing it has to do with the scope of the array but I can’t figure out how to export the array so that it can be used on outside of the function, and more importantly, other .swfs

Any help would be great :thumb2: