Adobe AIR 来自Flash 一场大灾难?

发布于 2024-07-15 13:20:16 字数 531 浏览 3 评论 0 原文

有人有在 Flash CS3 中构建 AIR 应用程序的经验吗? 我继承了一个 AIR 应用程序,该应用程序正在 Flash 中构建,并且正在全力以赴进行构建。

首先,AIR 应用程序不通过 Flash IDE 运行。 没有文档类,当我在第一帧上放置跟踪语句时,它实际上从未跟踪(是的,发布设置中的忽略跟踪操作未勾选)。 我看到一个应用程序窗口(带有 AIR 图标),但它实际上没有执行任何操作。 就好像代码从未被执行过一样。

其次,我不确定 AIR 包中应该包含什么。 当前,当我创建 AIR 文件时,它会尝试打包所有源代码,包括我的 .svn 文件夹。

似乎不可能在 Flash 呈现的对话框(在“控件”菜单下)或单独的描述符文件中使用相对路径。 从Flash的角度来看,相对路径到底是什么,Fla放在哪里还是swf放在哪里? (当前我的项目中的不同文件夹)。

最后,有谁知道有什么好的教程可以更多地讨论 AIR 的内部工作原理吗? 不是谷歌似乎不断想出的营销或“你好,世界”曼波巨型......

谢谢, 卢克

Does anyone have any experience with building AIR apps from within Flash CS3? I inherited an AIR app that is being build from within Flash and is doing my head in to get build.

First of all, the AIR app doesn't run from with the Flash IDE. There is no document class and when I place a trace statement on the first frame it never actually traces (yes, Omit trace actions in the publish settings is un-ticked). I see an application window (with an AIR icon) but it's not actually doing anything. It is as if the code is never executed.

Second, I'm not sure what should be included in the AIR package. It currently tries to package up all my source code when I create an AIR file, including my .svn folders.

It seems to be impossible to use relative paths in either the dialog that Flash presents (under the Controls menu) or a separate descriptor file. From Flash's point of view, what is the relative path anyway, where the Fla is placed or where the swf is placed? (currently different folders in my project).

Lastly, does anyone know of any good tutorials that talk more about the inner workings of AIR? Not that marketing or "hello, world" mambo jumbo that Google constantly seems to come up with...

Thanks,
Luke

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

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

发布评论

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

评论(4

扮仙女 2024-07-22 13:20:16

虽然可以使用 Flash Builder 编译在 Flash Professional 中创建的项目,反之亦然,但如果项目非常复杂,那么这样做就变得很重要。

如果创建该项目的人正在使用 Flash Builder,我希望在 Flash Builder(甚至是试用版)中打开该项目将允许您启动并运行该项目并进行编译以进行测试。

如果它是在 Flash Builder 中创建的,并且您尝试在 Flash Professional 中打开它,则会涉及许多注意事项。 您可能必须设置文档类,并确保构建设置中包含各种包/框架。 此外,在某些情况下,Flash Professional 编译器的运行方式可能与 Flash Builder 编译器不同(它们不相同),从而导致您的应用程序出现奇怪的行为(假设它可以编译)。

这不是你的错 - Adob​​e 将他们的几个产品之间的术语“Flash”混为一谈,因此完全不清楚什么是什么,而兼容性可能通过事物的名称来指示(嘿,AIR 是 AIR,对吧? ), 错误的。

最好的选择是在 Flash Builder 中打开原始项目并从那里获取它。 祝你好运!

While it is possible to compile projects created in Flash Professional using Flash Builder, and vice versa, if the project has any significant complexity, doing so becomes non-trivial.

If the person who created the project was using Flash Builder, I would expect that opening the project in (even a trial version of) Flash Builder will allow you to get the project up and running and compiling in order to test.

If it was created in Flash Builder, and you are attempting to open it in Flash Professional, there are many caveats involved. You may have to set the Document Class, and ensure that various packages/frameworks are included in your build settings. Also, there are some instances in which the Flash Professional compiler may operate differently than the Flash Builder compiler (they are not the same), resulting in odd behavior in your app, assuming it compiles.

It's not your fault — Adobe has conflated the term "Flash" between several of their products, so it is not clear at all what is what, and while compatibility may be indicated by the names of things (hey, AIR is AIR, right?), wrong.

Your best bet is to open the original project in Flash Builder and take it from there. Good luck!

北城孤痞 2024-07-22 13:20:16

您使用 Flash IDE 有什么特殊原因吗? 我建议使用 Flex Builder IDE(试用 30 天)或适用于 Eclipse 的 Flex 插件来开发 AIR 应用程序。

http://www.adobe.com/support/documentation/en/air/< /a>

是我遇到的学习 AIR 的最好的免费资源。 祝你好运!

Any particular reason you are using the Flash IDE ? I would suggest using the Flex Builder IDE (trial for 30 days) or Flex plugin for Eclipse for developing AIR applications.

http://www.adobe.com/support/documentation/en/air/

is the best free resource I have come across for learning AIR. Good luck!

晨与橙与城 2024-07-22 13:20:16

要使 AIR 应用程序正常工作,您需要很多脚手架 - 例如应用程序描述符、证书、应用程序签名等。Flex 构建器具有可以处理此问题的内置工具。 您也许可以对 CS3 做同样的事情,但需要进行大量额外的黑客攻击,但为什么要这么麻烦呢?

此处获取 Flex 构建器的试用版(我建议首先获取 eclipse 插件并安装 eclipse)。 60 天后,当试用期结束时,您应该非常清楚哪些工具适合您。

There is a lot of scaffolding that you need to get AIR apps working properly -- things like application descriptors, certificates, application signing, etc.. Flex builder has built-in tools that can handle this. You could probably do the same with CS3 with a lot of extra hacking, but why bother?

Get a trial version of Flex builder here ( I would recommend getting the eclipse plugin and installing eclipse first). After 60 days, when the trial expires, you should have a pretty good idea about what tools are right for you.

南风几经秋 2024-07-22 13:20:16

我还希望在学习 AIR / FLEX 时获得帮助,因为我们正在考虑使用这些技术为我们的应用程序开发客户端。

我发现以下来自 Adob​​e 的视频教程非常有用。 它们很容易理解,如果您使用过任何其他现代框架,它们可能会在某些地方非常熟悉(特别是会想到 Apple 的 Cocoa...)。

希望您发现它们和我一样有帮助。

I also wanted to get a leg-up when it came to learning AIR / FLEX since we are considering developing a client for out application using these technologies.

I found the following video tutorials from Adobe to be exteremely useful. They are easy to follow and will probably be very familiar in places if you've worked in any other modern frameworks (Apple's Cocoa springs to mind especially...).

Hope you find them as helpful as I did.

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