var xml_doc:XML = new XML(); xml_doc.onLoad = function(success:Boolean):Void { if (success) { trace(xml_doc); } } xml_doc.load("menu1.xml");