错误:无法将 .mxml 文件添加到项目中

发布于 2024-12-27 18:51:10 字数 356 浏览 4 评论 0原文

我有一个用 Maven 制作的项目 .swc 。构建成功。 如果我将项目添加到 Flashbuilder,则不会出现任何错误。 但是如果我使用 flashbuilder 添加 .mxml 文件,那么它是从 flashbuilder 生成的。

然后我得到这个错误:

1172:定义 mx.core:DeferredInstanceFromClass

找不到定义 mx.core:DeferredInstanceFromClass。

如果我添加 .as 文件就没有问题。

有谁对这个问题有想法或解决方案吗?

谢谢。

I have a project .swc made with maven. the build is successful.
If I add the project to Flashbuilder, i get no errors.
But if i add a .mxml file with flashbuilder, so its generated from flashbuilder.

Then i get This error:

1172: Definition mx.core:DeferredInstanceFromClass

could not be found.

if i add .as file then there is no problem.

does anyone have an idea or solution to this problem..

Thanks.

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

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

发布评论

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

评论(1

各自安好 2025-01-03 18:51:10

目前尚不清楚将 MXML 文件添加到 Flash Builder 项目与从 Maven 构建的 SWC 有什么关系。

但是,当库项目和主项目之间的 SDK 版本不匹配时,经常会出现您所说的错误。因此,请确保您的 SWC 使用与您的主项目使用的 SDK 版本相同的版本进行编译。

It is not clear what adding an MXML file to a Flash Builder project has to do with a SWC built from Maven.

However, errors such as the one you state often crop up when there is a SDK version mismatch between the library project and main project. So, be sure that your SWC is being compiled with the same version of the SDK that your main project uses.

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