MXMLC编译器丢失的文件系统库 [英] MXMLC compiler missing filesystem library

查看:88
本文介绍了MXMLC编译器丢失的文件系统库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有没有困难,直到这一点直接从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.

这篇关于MXMLC编译器丢失的文件系统库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆