3 Replies Latest reply on Aug 16, 2010 6:52 PM by Ned Murphy

    Logical placements of .load() and .onload()


      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);


      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.