Breaking loops

Hi,

I would like to break a for-loop.

It should be easy with “break;”, but there is a slight complication to the code - the for-loop contains a function from within which I want to be able to break the loop.

Here is a codesnippet:
[AS]
for(i = 8; i > 1 ; i–){
loadText = new LoadVars();
loadText.load(“Textfile.txt”);
loadText.onLoad = function(success) {
if (success) {
break for; // HERE I WANT THE BREAK
}
};
}
[/AS]

So, somehow, I want to break the for-loop from within the onLoad-function. Is that possible with some other code (this ofcourse doesnt work)?