浏览 2719 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2009-12-09
最后修改:2009-12-25
系列二: 从网页中判断是否安装指定的AIR应用程序
<allowBrowserInvocation>true</allowBrowserInvocation>
private function onVersionCallback( version:String ) { if ( version == null ) { root.statusMessage.text = “Application not installed” } else{ root.statusMessage.text = "App version: " + version; } private function onButtonClicked(e:Event):void { try { switch (_air.getStatus()) { case "installed" : root.statusMessage.htmlText = "Download and open the AIR file to begin the installation"; root.statusMessage.text = "Executing .getApplicationVersion()"; _air.getApplicationVersion("BrowserInvokeTest", "017D136B33EF96C734A4CED5AD6F482E6AE9E1B8.1", onVersionCallback); break; case "available" : root.statusMessage.htmlText = "This badge does not perform any installation"; break; case "unavailable" : break; } } catch (e:Error) { root.statusMessage.text = e.message; } }
--豆沙包
声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |