MXMLC compiler missing filesystem library

陌路散爱 提交于 2019-12-14 03:11:44

问题


I've had not trouble until this point directly from MXMLC command line. While compiling Actionscript 3 code I ran into a dependency problem.

import flash.filesystem;

and I get

    Error: Definition flash:filesystem could not be found

There are another or two file-related libraries such as filestream. Where can I find these standard libraries and how might I add them to my MXMLC library PATH?


回答1:


What are the specific classes you are trying to use? If you want to import all of the classes in the flash.filesystem package you need a * at the end of that import statement. Otherwise you need to append the class name(s). Something like one of these:

import flash.filesystem.*;

or

import flash.filesystem.File;

The other thing that might be an issue is the values in your flex-config.XML (or air-config.xml) file that is part of the SDK. You might need to configure this to include the classes in the AIR sdk, etc.



来源:https://stackoverflow.com/questions/14116270/mxmlc-compiler-missing-filesystem-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!