Array values inside funtion?

Hi,

Newbie question…:slight_smile:

I have a function to load text file to array…
But how do i make a “global array”?
So that the values are ‘accessible’ outside the function?

function onComplete(e:Event):void
{
read values from text file to array…
trace array[0]…ok
}
trace array[0]…nothing

thanks.