我正在尝试从 ActionScript Mobile Project 中的文本文件中读取单词。然后将每个字存储在一个数组中。这在 AIR IOS 模拟器期间工作正常,但现在我正在 Ipad 上调试,但它不工作......
错误 #2044:未处理的 ioError:。文本=错误 #2032:流错误。网址:app:/var/mobile/Applications/13FB44C5-E2EB-421F-9EF8-CB1290B75DD8/Library/Application%20Support/com.mcmami3.word/Local%20Store/media/words5.txt
private function slangLoadedThree(event:Object):void {
slangContentThree = event.target.data;
slangArrayThree= slangContentThree.split("\n");
}
//five letter load
var xmlFileFive:File=new File(File.applicationStorageDirectory.nativePath).resolvePath("media/words5.txt");
myLoaderThree.load(new URLRequest(xmlFileFive.nativePath));
myLoader.addEventListener(AsyncErrorEvent.ASYNC_ERROR, errorHandlerAsyncErrorEvent);
myLoader.addEventListener(IOErrorEvent.IO_ERROR, errorHandlerIOErrorEvent);
myLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, errorHandlerSecurityErrorEvent);
myLoaderThree.addEventListener(Event.COMPLETE, slangLoadedThree);