錯誤信息:SecurityError: Error #2148: SWF 文件 D:/demo/test/index.swf 不能訪問本地資源 D:/demo/test/bin-debug/textLayout_4.0.0.10485.swf。只有僅限於文件系統的 SWF 文件和可信的本地 SWF 文件可以訪問本地資源。
at flash.net::URLStream/load()
at flash.net::URLLoader/load()
解決方法:
在C:/WINDOWS/system32/Macromed/Flash/FlashPlayerTrust目錄下添加一個文件,比如:1.txt(文件名可任意起),文件內容爲:“D:/demo/test/”即項目的路徑,當然也可以設置爲“D:/”