class XmlParse { function XmlParse(targetXmlStr, f) { var thisObj = this; var _loc2 = new XML(); _loc2.ignoreWhite = true; _loc2.onLoad = function (success) { if (success) { thisObj.myXml = this; thisObj.init(f); } else { trace ("error loading XML"); } // end else if }; _loc2.load(targetXmlStr); } // End of the function function init(functionName) { if (functionName != undefined) { functionName(); } // end if } // End of the function } // End of Class