我有没有困难,直到这一点直接从MXMLC命令行。在编写ActionScript 3的code我遇到了一个依赖问题。
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;
和我得到
Error: Definition flash:filesystem could not be found
有另外一个或两个文件相关的库如文件流。我在哪里可以找到这些标准库,我怎么可能把它们添加到我的MXMLC库路径?
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?
什么是您要使用特定的类?如果要导入所有的类在 flash.filesystem
包,你需要一个 *
在该月底import语句。否则,你需要追加的类名(S)。类似于下列之一:
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.*;
或
import flash.filesystem.File;
这可能是一个问题的另一件事是在你的Flex-config.xml中(或空气-config.xml文件)文件,该文件是SDK的一部分价值。您可能需要配置这包括类在AIR SDK等。
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.
上一篇:如何使用的getURL在类(AS3)如何使用、getURL
下一篇:什么是"验证"功能RSAKey(AS3Crypto)呢?功能、QUOT、AS3Crypto、RSAKey