如何修复 flexmojos:未找到类型 - UncaughtErrorEvent (Flex 4.1)
我正在使用 Flexmojos 3.8 和 Flex 编译器 4.1.0.16248
我的项目在 Flash Builder 中编译得很好,但使用 Flexmojos / maven 时出现以下错误:
Type was not found or was not a compile-time constant: UncaughtErrorEvent
Flex 代码如下所示:
loaderInfo.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, onUncaughtError);
Flex Compiler 4.1 应该知道类型 UncaughtErrorEvent - 为什么它失败了吗?
I'm using flexmojos 3.8 with flex compiler 4.1.0.16248
My Project compiles fine in Flash Builder, but with flexmojos / maven I get the following Error:
Type was not found or was not a compile-time constant: UncaughtErrorEvent
The Flex Code looks like this:
loaderInfo.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, onUncaughtError);
The Flex Compiler 4.1 should know the type UncaughtErrorEvent - Why does it fail?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找到了解决方案:
flexmojos 邮件列表
Found the Solution:
flexmojos mailing list
您需要将 Flash Player 定位到 10.1 而不是 10.0
不确定如何在 Maven 中执行此操作,但这可能是您的问题。
You'll need to target flash player 10.1 instead of 10.0
Not sure how to do it in Maven, but that's likely your problem.