Flex:编译器如何知道依赖关系?

发布于 2024-07-11 11:24:59 字数 375 浏览 6 评论 0原文

我对 Flex 完全陌生,只是尝试使用 Mate 框架中的示例应用程序。 我在 Linux 上进行黑客攻击,所以我使用命令提示符和文本编辑器而不是 Flex Builder。

示例应用程序的根目录中有两个文件夹 lib & 源代码。 Lib 包含依赖项。 如何编译 src 中的 mxml 文件,以便编译器知道 lib 中的依赖关系?

目前我正在运行 $ mxmlc exampleApp/src/sampleApp.mxml

编译器抛出一个异常,表示无法解析为组件实现。 我知道这个组件是 lib 文件夹中依赖项的一部分。 所以它显然不会被自动拾取。

任何帮助,将不胜感激。

问候,

克里斯

I'm completely new to Flex and am just having a play with a sample application from the Mate framework. I'm hacking on Linux so I'm using the command prompt and a text editor rather than Flex Builder.

The sample app has two folders in its root directory lib & src. Lib contains a dependency. How can I compile the mxml file in src, so that the compiler knows about the dependency in lib?

At the moment I'm running $ mxmlc sampleApp/src/sampleApp.mxml

The compiler throws an exception saying that is couldn't resolve to a component implementation. I know this component is part of the dependency in the lib folder. So it is obviously not being picked up automatically.

Any help would be appreciated.

Regards,

Chris

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

枯寂 2024-07-18 11:24:59

您必须指定库的路径,这可以通过使用命令行参数或将其放入配置文件中来完成。 请参阅:

http://livedocs.adobe.com/flex/3/ html/compilers_19.html#158337

You have to specify the path to the libraries, this can be done by either using a command line argument or putting it in a configuration file. See:

http://livedocs.adobe.com/flex/3/html/compilers_19.html#158337

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文