Adobe AIR SDK和Flex SDK的关系? [英] Relationship of Adobe AIR SDK and Flex SDK?

查看:197
本文介绍了Adobe AIR SDK和Flex SDK的关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图理解Flash平台的整个混乱(主要是因为我理解这些术语),到目前为止,我还没有弄清楚AIR和Flex SDK究竟是如何有关。在没有真正查看SDK的情况下,我的理解是,AIR可以让您开发AIR运行时不需要浏览器的Flash(即ActionScript,显然也是JavaScript / HTML)应用程序(例如纯桌面或智能手机应用程序)。 Flex SDK似乎是一些类和附加API(类似于JavaFX?)的集合,以扩展标准Flash库。



现在,我已经下载了这两个SDK的最新版本,显然并不那么简单。所以,我首先看了AIR SDK( http://www.adobe.com/devnet/ air / air-sdk-download.html ,截至目前v3.4)。据我所知,adt实用程序是AIR的主要部分,可让您打包完成的应用程序。但是,我不确定AIR SDK实际上是否包含一个编译器 - 假设您有一堆ActionScript .as文件,并且想要使用AIR SDK将它们转换为.swf或.air文件,甚至有可能吗? / p>

Flex SDK( http:// www.adobe.com/devnet/flex/flex-sdk-download.html ,截至目前的版本4.6)不幸的是没有帮助的混淆。它包括编译器和其他工具,但在bin文件夹中,我也可以找到adt和adl - AIR工具!更重要的是,它还具有AIR SDK license.pdf和AIR SDK readme.txt文件;从这些看来,Flex SDK包含了一些老版本的AIR SDK版本2. 为了让事情更加混乱,我还发现了一个组合版本Adobe的网站( http:// gaming。)上的Flex和AIR®SDK(Flex SDK 4.6.0.23201和AIR 3.4.0.2540 SDK) adobe.com/getstarted/ )。看来,这不仅仅是通过将AIR 3.4文件复制到Flex 4.6文件创建的,而是将另一个项目添加到列表中。



所以, d想知道这两个(三个?)SDK的区别。我需要Flex实用程序来编译?为什么纯Flex SDK包含AIR的部分(?)?我可以将任何版本的AIR SDK复制到Flex SDK中,以便同时使用FlashDevelop?

解决方案


 我还没有弄清楚AIR和Flex SDK是如何相关的。 


从封装的角度来看,它们没有任何关系。但是,Adobe不会将AIR SDK与其版本的Flex SDK一起分发。

使用IDE(如Flash Builder)时,需要使用特定的目录结构,其中包括Flex SDK子目录中的AIR SDK。 使用Apache Flex时,Apache无权分发AIR SDK,因此用户可以通过某种方式组合AIR SDK和Flex SDK这使得在Flash Builder中使用SDK变得很容易。但是,Apache Flex人员正在开发一个简易安装工具来准备Apache Flex SDK,以便与Flash Builder配合使用。该工具会下载所有相关的非Apache二进制文件,并为您提供完整的包。



使用Flex UI框架并在不使用Flex的情况下使用AIR SDK。但是,在Flex SDK中,特别是在移动组件集中,我相信AIR SDK有一些依赖关系。而要使用AIR,则需要编译它。

我将试着回答您的一些具体问题:


我的理解是,AIR使您能够开发AIR运行时可以运行的Flash
(即ActionScript,显然也是JavaScript / HTML)应用程序
而不需要浏览器(例如
作为纯粹的桌面或智能手机应用程序)。

这是真的;除了我不相信AIR对于智能手机的HTML / JS支持就像在桌面上一样。 Mobile AIR Runtime不包含像桌面版本那样的嵌入式浏览器。但是,您可以使用StageWebView在设备上使用浏览器。
$ b


Flex SDK似乎是类和其他API的集合
...扩展标准Flash库。

这是正确的。除了用于构建自己的UI类的框架之外,Flex框架还提供了大量的UI组件类。要清楚的是,Flex SDK不仅包含Flex框架,还包括一个调试器和命令行编译器的步骤。


Flex SDK包含一些旧版本的AIR
SDK b $ b

这是真的; Flex SDK包含AIR SDK的一个版本。 Flex和AIR不在相同的更新时间表上;因此Flex只有在新的Flex版本发布时才会更新到最新版本的AIR。如果您需要,可以将新的Air SDK覆盖到Flex SDK上。 以下是一些说明。我忘记了包含在Adobe Flex 4.6中的AIR版本,但我认为它是AIR 3.2。 AIR 3.4是Adobe的最新版本。

值得一提的是,Flex已经捐赠给了 Apache基金会;他们已经发布了Apache Flex 4.8。


我需要Flex实用程序来编译吗?

我对这个问题的答案并不完全清楚。大多数人使用Flex SDK中的MXMLC来编译基于AIR的应用程序。即使您使用Flash Builder,也可以使用MXMLC。如果您使用Flash Professional,我相信它有自己的AIR Compiler,但我不知道它是否基于MXMLC。 Flash Builder 4.7将包含一个全新的编译器 - 代号Falcon。


我可以将任何版本的AIR SDK复制到Flex SDK中,以使用
FlashDevelop?


理论上是。我不知道什么关于FlashDevelop,但我明白它支持Flex。我推断,它也支持AIR。

I'm trying to make sense of the whole mess of the Flash platform (mainly so I understand the terms being thrown around) and so far, I haven't been able to figure out how exactly the AIR and Flex SDKs are related. Without actually having looked at the SDKs, my understanding would have been that AIR enables you to develop Flash (i.e. ActionScript, and apparently also JavaScript/HTML) applications that can be run by the AIR runtime without the need of a browser (such as a pure desktop or smartphone application). The Flex SDK appears to be a collection of classes and additional APIs (similar to JavaFX?) to extend the "standard" Flash library.

Now, I've downloaded the most recent versions of both SDKs, and apparently, it's not that simple. So, first I looked at the AIR SDK (http://www.adobe.com/devnet/air/air-sdk-download.html, v3.4 as of now). As far as I can tell, the "adt" utility is the main part of AIR that lets you package finished applications. However, I'm not sure if the AIR SDK actually includes a compiler – say you have a bunch of ActionScript .as files and want to turn them into a .swf or .air file using the AIR SDK, is that even possible?

The Flex SDK (http://www.adobe.com/devnet/flex/flex-sdk-download.html, v4.6 as of now) unfortunately didn't help with the confusion. It does include compilers and other tools, but in its "bin" folder, I could also find "adt" and "adl" – the AIR tools! What's more, it also has "AIR SDK license.pdf" and "AIR SDK readme.txt" files; judging from those, it appears that the Flex SDK includes some older version of the AIR SDK version 2.

To make things even more confusing, I also found a "combined version of the Flex and AIR® SDKs (Flex SDK 4.6.0.23201 and AIR 3.4.0.2540 SDK)" on Adobe's site (http://gaming.adobe.com/getstarted/). It seems that this wasn't merely created by copying the AIR 3.4 files to the Flex 4.6 files, adding yet another item to the list.

So, essentially, I'd like to know the differences between these two (three?) SDKs. Would I need the Flex utilities to compile? Why does the "pure" Flex SDK include parts (?) of AIR? Could I just copy any version of the AIR SDK into a Flex SDK to use both with e.g. FlashDevelop?

解决方案

I haven't been able to figure out how exactly the AIR and Flex SDKs are related.

From an encapsulation perspective, they aren't related in any way. However, Adobe does distribute the AIR SDK with their versions of the Flex SDK.

When using an IDE, such as Flash Builder, a certain directory structure is expected, which includes the AIR SDK in a subdirectory of the Flex SDK.

When using Apache Flex, Apache does not have the rights to distribute the AIR SDK, so it is up to the user to combine the AIR SDK and Flex SDK in a way that makes it easy to use the SDK with Flash Builder. However, the Apache Flex folks are working on an "easy install" tool to prepare the Apache Flex SDK for use with Flash Builder. The tool downloads all the relevant non-Apache binaries and provides you with a finished package.

It is perfectly valid to use the Flex UI Framework without AIR; and to use the AIR SDK without Flex. However, in the Flex SDK, specifically in the mobile component set, I believe there are some dependencies to the AIR SDK. And to use AIR, you will need something to compile it. MXMLC from the Flex SDK is one option.

I'm going to attempt to answer some of your specific questions:

My understanding would have been that AIR enables you to develop Flash (i.e. ActionScript, and apparently also JavaScript/HTML) applications that can be run by the AIR runtime without the need of a browser (such as a pure desktop or smartphone application).

This is true; except I do not believe that AIR has HTML/JS support for smartphones in the same way it does on the desktop. The Mobile AIR Runtime does not include an embedded browser like the desktop version does. However, you can make use of the browser on the device using StageWebView.

The Flex SDK appears to be a collection of classes and additional APIs ...to extend the "standard" Flash library.

This is correct. The Flex Framework provides a lot of UI Component classes, in addition to a framework for building your own UI Classes. To be clear, the Flex SDK includes more than just the Flex Framework, including a step through debugger and the command line compiler.

it appears that the Flex SDK includes some older version of the AIR SDK

This is true; the Flex SDK includes a version of the AIR SDK. Flex and AIR are not on the same update schedule; so Flex would only get updated w/ the latest version of AIR when a new Flex release comes out. There are ways to overlay a new Air SDK onto a Flex SDK if you need it. Here are some instructions. I forget the version of AIR included in Adobe Flex 4.6, but I think it is AIR 3.2. AIR 3.4 is the latest from Adobe.

It is worth noting that Flex has been donated to the Apache Foundation; and they have already released Apache Flex 4.8.

Would I need the Flex utilities to compile?

I'm not entirely clear on the answer to this. Most people use MXMLC from the Flex SDK to compile AIR based applications. Even if you use Flash Builder, MXMLC is used under the hood. If you use Flash Professional, I believe it has it's own AIR Compiler but I do not know if it is based on MXMLC. Flash Builder 4.7 will include a brand new compiler--code named Falcon.

Could I just copy any version of the AIR SDK into a Flex SDK to use both with e.g. FlashDevelop?

In theory yes. I don't know anything about FlashDevelop, however I did understand it had support for Flex. I assume, by extension, it also has support for AIR.

这篇关于Adobe AIR SDK和Flex SDK的关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆