如果我通過動態文本字段中的<img>標記加載圖像並引發IOError,我還會附加什麼事件偵聽器?文本字段? 我想這...如何在AS3中處理來自HTML的IO錯誤啓用文本錯誤
var textField:TextField = new TextField();
textField.htmlText = "here is some text <img src='image.jpg'> and then some more";
textField.addEventListener(IOErrorEvent.IOError, function (e:Event):void { trace("error caught") });
無濟於事......
建議?
重複:HTTP://stackoverflow.com/questions/309713/flash-textfield- html-how-do-i-prevent-the-error-dialogue-for-missing-images-e 我沒有真正測試我接受的解決方案(當時沒有時間),所以讓我知道它是否/不適合你。 (編輯:好的,我不是那麼懶惰,我正在嘗試...) – 2010-02-22 09:02:00
看起來像你答應在去年5月份測試它! – 2010-02-22 16:35:53