/** Loader 取消加载**/ function closeQueueLoader():void { if (cur_loader && cur_loader.contentLoaderInfo.bytesLoaded != cur_loader.contentLoaderInfo.bytesTotal) { trace("关闭流"); cur_loader.close(); cur_loader.unloadAndStop(); cur_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, completeLoadXML); cur_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, error); } cur_loader = null; } /** URLLoader 取消加载**/ function gc() { if (urlLoader && urlLoader.bytesLoaded != urlLoader.bytesTotal) { trace("关闭流"); urlLoader.close(); urlLoader.removeEventListener(Event.COMPLETE, completeLoadXML); urlLoader.removeEventListener(IOErrorEvent.IO_ERROR, error); } urlLoader = null; }