-2
如何在動作腳本3.0中加載外部xml文件,我看過教程http://webdeginer.blogspot.com/2010/06/external-xml-loading.html,是對的還是我必須看到更多教程。使用AS3.0的外部XML
謝謝, K Swamy Vishnubhatla, webdeginer.blogspot.com。
如何在動作腳本3.0中加載外部xml文件,我看過教程http://webdeginer.blogspot.com/2010/06/external-xml-loading.html,是對的還是我必須看到更多教程。使用AS3.0的外部XML
謝謝, K Swamy Vishnubhatla, webdeginer.blogspot.com。
如果你想爲鏈接到自己的博客「只是一個博客,我偶然看到在網絡上」,最起碼,你應該做的是確保博客名稱,並在你的屏幕名稱SO是不同的。
也就是說,那裏的代碼沒有監聽io-error和安全錯誤,當它找不到URL時,URLLoader
引發的錯誤和安全錯誤,以及由於分別存在安全域違例而無法訪問URL。如果你不處理這些事件,Flash播放器將拋出未處理的錯誤,你甚至可能不知道,除非你正在使用調試版本的Flash播放器。
xmlob.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
xmlob.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
function securityErrorHandler(e:SecurityErrorEvent):void
{
trace("security error occurred:\n" + e);
}
function ioErrorHandler(e:IOErrorEvent):void
{
trace("io error occurred:\n" + e);
}