存档

‘AIR’ 分类的存档

What’s new in Flash Player 10.1 and AIR 2

2010年3月12日 评论已被关闭
分类: AIR, Flex 标签: ,

Adobe AIR 2 Beta 2

2010年2月18日 评论已被关闭
分类: AIR 标签:

Using the Microphone capabilities in Adobe AIR 2 beta

2009年12月2日 评论已被关闭
分类: AIR, Flash Platform 标签:

Exploring the New Storage Volume APIs in AIR 2

2009年11月19日 评论已被关闭

Posted by Rob Christensen:http://blogs.adobe.com/air/2009/11/exploring_the_new_storage_volu.html

检测大容量存储设备

One of the new capabilities that will be available in our upcoming beta release of Adobe AIR 2 will allow developers to build applications that can detect the mounting and unmounting of mass storage devices. What is a mass storage device? Examples of such devices include USB flash drives, hard drives and certain models of MP3 players and cameras such as the popular Flip HD video cameras. Using these new API’s, developers will be possible to build new classes of applications that were not possible in AIR 1. For example, it is now possible for a developer to build an applications that automatically synchronizes data between a local hard drive (or in the cloud) and a mass storage device.

Christian Cantrell, a member of the Adobe AIR team, posted an excellent blog post with code samples where he provides example code how these new API’s will work. In addition, he also recorded a demo of an AIR 2 application he made available as open source called FileTile.

分类: AIR, Flash Platform 标签:

Adobe Air 2.0 beta

2009年11月18日 评论已被关闭

Adobe Air 2.0 beta 来了:

http://labs.adobe.com/technologies/air2/

还有 Flash Player 10.1 beta

Adobe Air 2.0 相关的资源

新增了以下功能:

  1. 支持大容量存储设备检测。
  2. 高级网络可用性监测比如sockets,UDP支持,并能监听sockets
  3. 支持本机代码集成
  4. 打开一个文件按照它的默认应用程序类别。
  5. 多点触摸和手势的支持。
  6. 新的API获取原始麦克风数据。
  7. Webkit浏览与HTML5/CSS3支持
  8. 全局的错误处理。
  9. 改进的跨平台打印
  10. 改进的安全和为企业和政府支持的标准
分类: AIR 标签: , ,

De MonsterDebugger

2009年10月22日 评论已被关闭

De MonsterDebugger 它基于Air开发

功能:可以用来调试Flex、Flash、Air

分类: AIR 标签: ,

(转)AIR 2.0的三个新特性!

2009年9月29日 评论已被关闭

来至:http://swfever.com/?p=341

不知道有多少人注意到了Mike Chambers最近放出的讲稿Advanced Desktop Development with Adobe AIR中其实透露了部分AIR 2.0的新特性内容。反正我是没有注意到,但是Lee Brimelow注意到了,所以我忙不迭的下载并阅读了那篇讲稿。是的,我现在的心情和Lee Brimelow一样,那就是:很高兴我们终于可以放出一些AIR 2.0令人兴奋的新特性了!

这里我简单介绍一下Mike Chambers讲稿中所提及的三个AIR 2.0的新特性,更多新特性会在Adobe MAX 09大会上发布。届时会为大家提供更多的信息。

AIR 2.0新特性之一:存储器(Storage Volume)监听

AIR 2.0提供了对系统的存储器信息访问和监听的API。通过这些API,你不仅可以访问到硬盘文件系统,同时还可以监听通过USB或火线进行连接的移动存储设备,例如移动硬盘和以存储方式连接到计算机的相机,MP3或手机等等。
你可以通过对系统存储器信息添加监听器来监听这些外部设备的连接、断开状态。
代码示例:

StorageVolumeInfo.storageVolumeInfo.addEventListener(StorageVolumeChangeEvent.STORAGE_VOLUME_MOUNT, onStorageVolumeMount);
StorageVolumeInfo.storageVolumeInfo.addEventListener(StorageVolumeChangeEvent.STORAGE_VOLUME_UNMOUNT,onStorageVolumeUnmount);

AIR 2.0新特性之二:使用操作系统默认应用程序打开文件

AIR 2.0提供了非常简单易用的API让你使用操作系统所定义的关联应用程序打开文件。用法如下:

var file:File = File.desktopDirectory.resolvePath("Temp.txt");
file.openWithDefaultApplication();

这使得使用AIR开发基于“文件管理器”的应用称为可能。

AIR 2.0新特性之三:与本地进程(应用程序)进行通讯!

毫不夸张的说,这是最让我感到兴奋的AIR 2.0新特性之一,因为它意味着将AIR应用的功能无限扩展化。举个例子来说,你可以将Windows命令行程序(cmd.exe)通过AIR应用封装起来,并指挥它做任何你想做的事情。
AIR2.0与本地进程的交互主要体现在以下几方面:

  • 启动进程并提供初始参数
  • 向进程写入数据
  • 读取进程的输出数据

以下是一个例子:

private var nativeProcess:NativeProcess = new NativeProcess();
private var npsi:NativeProcessStartupInfo = new NativeProcessStartupInfo();
 
var file:File = File.desktopDirectory.resolvePath("executable.exe");
npsi.executable = file;
npsi.workingDirectory = File.desktopDirectory;
var args:Vector.<String> = new Vector.<String>;
args.push("-key");
args.push("value");
npsi.arguments = args;
nativeProcess.start(npsi);

当然,Adobe始终把平台运行时的安全因素放在首位。如果你希望你的AIR应用能有与本地进程交互,需要注意以下限制:

  • 必须通过操作系统的安装工具来部署,不能直接使用AIR包进行安装(AIR是跨平台的文件格式)。
  • 不能启动位于当前AIR应用程序文件夹中的进程。
  • 必须在AIR应用程序描述文件指明supportProfiles为extendedDesktop(或使用AIR命令行工具指明该参数)。

关于如何通过操作系统本地的安装工具来部署AIR应用,这次的MAX大会上将有专题介绍。

分类: AIR 标签:

(转)AIR程序安装文件及安装

2009年8月27日 评论已被关闭

双击xxxx.air文件后AIR程序会安装,但是实际上是怎么回事呢,是与命令行执行
“Adobe AIR Application Installer.exe” absolutePathToYourAIRApp/xxxx.air
是相同的效果。 “Adobe AIR Application Installer.exe”为什么要用双引号括起来呢,是因为Windows command propmt里打命令名中有空格,所以必须要用双引号括起来。

这个命令还有另外两个参数 silent 和 uninstall:

-silent 用法
“Adobe AIR Application Installer.exe” -silent -logToStdout -eulaAccepted -location “C:\Program Files\xxxxxxx” xxxxxxxx.air
silent参数就是静默安装了,就是说不弹出安装对话框,悄悄地一步就安装完了。
logToStdout参数实际使用不需要,是把安装过程中的信息打到标准输出终端上,就是命令行上。
eulaAccepted参数中EULA是End User Licese Agreement,就是同意用户协议了,我绝对是同意的,可是没加这个参数也没见什么动静
location参数及后面指定的路径当然是安装路径了
xxxxxxxx.air当然是你的AIR程序安装文件了

-uninstall 用法 “Adobe AIR Application Installer.exe” -uninstall appInstaller.air xxxxx
uninstall后应该有两个参数,第一个可能是air安装文件,第二个不知道写什么。参数少会报not enough arguments,这样写确实会执行uninstall,因为报错说”uninstall时发生错误”

虽然我不知道uninstall参数的用法,但是想到另一种卸载方法。
如果你安装了一个air程序,必定会在windows控制面板的添加和删除程序里有这个程序,你点击删除会卸载,那么点击删除后发生了什么事呢,我搜索注册表发现了它调用的命令。
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\YourAIRAppName
找到UninstallString项,其中的值就是删除命令:
MsiExec.exe /X{E824A28B-342F-B1C0-D90D-7EB4C668C083}
E824A28B-342F-B1C0-D90D-7EB4C668C083当然就是你程序的ID了。
MsiExec.exe是windows installer。

好了,现在安装和卸载都搞定了,哈哈哈。

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
说说AIR Runtime,在安装完AIR运行时环境后,在注册表HKEY_CLASSES_ROOT中搜索air,可以看到键值,分别是:

Content Type: application/vnd.adobe.air-application-installer-package+zip(在服务器端向客户端提供在线无缝安装时需要在web server里注册的mime content type就是这个了)
HKEY_CLASSES_ROOT\.air\OpenWithProgids AIR.InstallerPackage
搜索AIR.InstallerPackage可以找到一些键值,包括AIR Runtime路径的信息等。

在资源管理器中点击工具–文件夹选项–文件类型,在已注册的文件类型中找到.air扩展名,可以看到打开方式是Adobe AIR Application Installer,与注册表中的信息相符。

由注册表的信息可以找到AIR Runtime安装在C:\Program Files\Common Files\Adobe AIR,其中可以找到用来安装.air程序的C:\Program Files\Common Files\Adobe AIR\Versions\1.0\Adobe AIR Application Installer.exe。

from:http://www.51ajax.net/?p=123

分类: AIR 标签: ,

Adobe AIR 1.5.2改动

2009年8月21日 评论已被关闭

API改动包括:

  • 在AIR 1.5.2版本,开发者可以通过捕获KeyDown事件并通过调用preventDefault()来阻止用户通过按Esc键退出全屏模式行为
  • 使用HTML控件显示网页时,AIR 1.5.2可以显示网页中以wmode=transparent嵌入的SWF
  • 新增加Capabilities.supports32BitProcesses和Capabilities.supports64BitProcesses两个属性用以检测当前的系统是否支持32位和64位运算
  • 新增System.disposeXML(xml:XML)方法。这个静态方法可以将指定的XML立即清除,进行垃圾回收,提高释放XML资源的效率。

详细请看这里

分类: AIR 标签:

把 AIR 应用程序打包成 EXE 的工具

2009年6月14日 评论已被关闭

SHU 这个工具可以把 AIR 应用程序打包成可独立运行的 EXE 文件。
除此之外,还提供了一些扩展 AIR 的功能,例如系统截屏,调用外部系统程序等等。

http://shu-player.com

 

来至:http://www.dengjie.com/?p=1417

分类: AIR 标签: