Need access to array in function

Hi Forum,

My Problem is, that i can´t get access to my arrays outside of my function?
I´m reading forums for hours and nobody nows help.
(by the way i´m german so excuse for my english)
I try this way, maybe one of you nows the solution.

The only way to get acces to my arrays is to jump into the next frame.
There must be a way to get access in one frame.

Here is my code:

stop();
//create arrays outside the function
var clients:Array = new Array();
var headlines:Array = new Array();
var maintext:Array = new Array();
//
function getContent() {
var anzLadeversuche:Number = 0;
var maxLadeversuche:Number = 3;
//
var readXML:XML = new XML();
var src:String = "../content/content10/content.xml";
readXML.ignoreWhite = true;
readXML.load(src);
//
readXML.onLoad = function() {
//loading done.
anzLadeversuche++;
if (readXML.loaded) {
//data loaded
//read amount of elements
var cLength:Number = readXML.firstChild.childNodes.length;
trace(cLength);
//readXML in contentXML parsen, damit die idMap funktioniert
contentXML = new XML();
contentXML.parseXML(readXML);
//trace(contentXML.idMap["1.1"].firstChild);
//read clienttitle
for (var i:Number = 0; i<cLength; i++) {
clients* = contentXML.idMap[i+".1"].firstChild;
}
//read headlines
for (var i:Number = 0; i<cLength; i++) {
headlines* = contentXML.idMap[i+".2"].firstChild;
}
//read maintext
for (var i:Number = 0; i<cLength; i++) {
maintext* = contentXML.idMap[i+".3"].firstChild;
}
//here trace acts
play();
} else {
if (anzLadeversuche<maxLadeversuche) {
readXML.load(src);
} else {
trace("file not loaded");
}
}
};
}
getContent();
//here i need the arrays
//but i only get acces in the next frame