Migrate this code from AS2 to AS3

Hello all!

I´n trying to migrate this code from as2 to as3 but can´t make it work.
Could someone please give me a hand on this?


var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.load("teste.xml");
myXML.onLoad = function(success)
{
	if (success)
	{
		var myImage = myXML.firstChild.childNodes;
		var myURL = myXML.firstChild.childNodes.childNodes;
		for (i = 0; i < myImage.length; i++)
		{
			var imageNumber = i + 1;
			var imageURL= myImage*.attributes.url;
			var imageName  = myImage*.firstChild.nodeValue;
			//trace("My image number " + imageNumber + " is titled " + imageName + " and its URL is " + imageURL + ".");
			container_mc.loadMovie (imageName);
                        container.onRelease = function (){
                        getURL (imageURL);
                        }
			
			}
		}
	}


Fla and XML attached.

Thanks a lot!