ActionScript Explained

Could someone please explain this code to the best of thier ability?

var x:XML = new XML();
x.ignoreWhite =true;
var urls:Array = new Array();
var captions:Array = new Array();
var whoISOn:Number;
x.onLoad = function() {
 var photos:Array = this.firstChild.childNodes;
 for (i=0;i<photos.legnth;i++) {
  urls.push(photos*.attributes.url);
  captions.push(photos*.attributes.captions);
 }
 holder.loadMovie(urls[0]);
 caption.text = captions[0];
 whoIsOn = 0;
}
x.load("lost.xml");