A question about array

Hi everyone here is the code
function b(i):Array{
temp1.number = sendNumber*;
temp1.sendAndLoad(“http://XXX.php”, temp1,“POST”);
temp1.onLoad = function(){
myArr.push(temp1.coor);
if (i < sendNumber.length-1){
b(++i);
}
trace(myArr);
}
return myArr;
}
}
I will get data from PHP and then push it into myArr.
However, i can not trace(myArr) outside the function… how can i do that.
Thx ~!