Hi Folks…
I got the following code from Adobe’s ‘Serverside ActionScript Language Reference’. Here it is:
myLoadVars = new LoadVars();
myLoadVars.onLoad = function(result){
trace("myLoadVars load success is " + result);
}
myLoadVars.load("http://www.someurl.com/somedata.txt");
My questions is, if the purpose of the onload event handler is to confirm if the load operation is a sucess,than should it not be placed after the load command? In the above code, the onload event handler appears before the load and yet it works, I am wondering how this is possible? I hope someone can explain to me. Thanks guys.
regards
glisando