Category Archives: AIR

Adobe Air

AIR Error: invalid application descriptor: Unknown namespace/ versionNumber must have a non-empty value.

Adobe AIR 最近一年升级火速, 去年1.5.3创建的Project使用高版本的SDK后会因为配置文件引发各类错误, 譬如:
Error1:  Namespace 1.5.3 in the application descriptor file should be equal or

More…

Posted in AIR, Flex | Tagged , | Leave a comment

AIR: NativeMenu Separator, 右键菜单分割线

菜单中的分割线: 通过将 NativeMenuItem 构造函数中的 isSeparator 属性设置为 true 创建一条分隔线。
_menu = new NativeMenu();
_menuAddTopOU = new NativeMenuItem(RM.getString(BUNDL

More…

Posted in AIR | Tagged , , , | Leave a comment

在线安装AIR 及 Error# 2032错误解决方法

找到...\sdks\3.2.0\samples的badge目录,修改default_badge.html文件:
AC_FL_RunContent(
‘codebase’,'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swf

More…

Posted in AIR | Tagged , , , | Leave a comment

AIR中通过右键直接选定基于LIST容器[DataGrid, List, Tree等]的数据 – Select List item with mouse right-click

在很多情况下, 我们在DataGrid, List, Tree等容器中使用右键, 进行如修改, 删除 某行的操作. 问题是如果该容器初始状态下直接进行右键点击时, 并不能选定任何数据. 通过监听右键菜单SELECT事件, 获取到当前右键所击位置的Index, 并将之赋值给DataGrid或其他容器的SelectIndex, 完成点击操作

Posted in AIR | Tagged , , , , , | 4 Comments

AIR中使用:程序菜单,上下文菜单,右键菜单

与窗口一样, 在一个AIR应用中, 菜单也是不可或缺的.
虽然在AIR中菜单有多种实现方式, 但是所有的Menu都是相同的,只是其实现方式不同而已,因此, 我们建立一个菜单, 使用不同的方式实现:
var menuFile:NativeMenu = new NativeMenu();
//如

More…

Posted in AIR | Tagged | Leave a comment