I am trying to read from words from a text file in ActionScript Mobile Project. Each Word is then stored in an Array. This works fine during AIR IOS Simulator, but now I am Debugging on an Ipad and its not working...
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: 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);