Flex读取txt文件里的内容报错

Flex读取txt文件里的内容


1、详细错误例如以下



2、错误原因

     读取文件不存在

var file:File = new File(File.applicationDirectory.nativePath+"/phone.txt");


3、解决的方法

     将文件导入进去

原文地址:https://www.cnblogs.com/cxchanpin/p/6933831.html