// import the class import com.gskinner.net.XML2; myXML = new XML2(); // subscribe to its load event: myXML.addEventListener("complete",this); // subscribe to its httpStatus event: myXML.addEventListener("httpStatus",this); // set the timeout period to 3 seconds (default is 7 seconds): myXML.timeout = 3000; // this should time out after 3 seconds when you test it: myXML.load("http://1.1.1.1/file.xml"); // function to handle the load event: function complete(p_evtObj:Object):Void { var XMLObj:XML = p_evtObj.target; trace("success: "+p_evtObj.success); trace("status: "+XMLObj.status); trace("toString: "+XMLObj.toString()); } // function to handle the httpStatus event: function httpStatus(p_evtObj:Object):Void { trace("http status: "+p_evtObj.httpStatus); }