loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onError); private function onError(e: ErrorEvent):void { trace('Error'); }