运行或调试 AIR 应用程序时 Flash Builder 使用什么运行时?
我刚刚将 AIR 运行时更新到 3.0,并注意到我的 AIR 应用程序不再工作。所以我尝试使用 Flash Builder 对其进行调试,但是当我在那里运行它时,一切正常。因此,我完全卸载了 AIR 运行时,但注意到我仍然可以在 Flash Builder 中执行我的 AIR 应用程序。因此,Flash Builder 中使用的 AIR 运行时似乎与系统范围内安装的 AIR 运行时不同。如何在 Flash Builder 中选择要使用的运行时以及如何更新该运行时?
I just updated my AIR runtime to 3.0 and noticed that my AIR application doesn't work anymore. So I tried to debug it it with Flash Builder, but when I run it there, everything works just fine. So I uninstalled the AIR runtime completely but noticed that I can execute my AIR app within Flash Builder still just fine. So the AIR runtime used within Flash Builder seems to be a different one than the systemwide installed AIR runtime. How Do I chose within Flash Builder which runtime to use and how do I update this runtime?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Flex SDK 附带了自己的运行时,但在调试时使用 ADL 可执行文件(AIR 调试启动器)来自您正在编译的 SDK 的 /bin 文件夹(除非您为项目定义了自定义构建器)。
请注意,此链接指向 API 的第 3 版,新的 API 包括多屏幕运行时的选项,但这应该可以帮助您入门。
这可能听起来很奇怪,但我建议您不要使用 Flash Builder 的构建器来编译项目,除非它是非常基本的东西。如果您需要这种功能,请使用您自己的构建器。 Adobe 提供 Ant 任务来构建 Flex 项目这正是目的。因此,我将 Ant 设置为项目的构建器并编写一个构建文件。
Flex SDK comes with it's own runtimes, but when debugging you use ADL executable (AIR Debug Launcher) from the /bin folder of the SDK you are compiling against (unless you defined a custom builder for you project).
Note that this link is to version 3 of the API, new API include options for multiscreen runtimes, but this should get you started.
This may sound weird, but I'd suggest you don't use Flash Builder's builder to compile projects, unless it's something very basic. If you need that kind of functionality, use your own builder. Adobe provides Ant task for building Flex projects for this very purpose. So, I'd set Ant as the builder of the project and write a build file.