您可以将ID添加到图像
html.htmlText = "Bogus image: ";
然后为HTML中的每个图像设置IOErrorEvent处理程序
var loader:Loader = html.getImageReference("image") as Loader; if(loader){ loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function(e:Event):void{}); }