开发者

getDefaultApplication is not a function

开发者 https://www.devze.com 2023-01-25 20:51 出处:网络
I\'m developing and AIR application in html.I have: var myDir = air.File.desktopDirectory.reso开发者_如何转开发lvePath(\"HelloWorld\");

I'm developing and AIR application in html. I have:

var myDir = air.File.desktopDirectory.reso开发者_如何转开发lvePath("HelloWorld");
myDir.openWithDefaultApplication(); // This works.
var X = myDir.getDefaultApplication(); // This doesn't.

It instead says "getDefaultApplication is not a function." But it's talked about on page 337 of AIR 1.5 Applications with HTML.


according to the official flash.filesystem.File documentation (which hasn't changed since AIR 1.0), there is no getDefaultApplication() method.

i believe you are looking for getDefaultApplication() method that is available in the flash.desktop.NativeApplication class.

0

精彩评论

暂无评论...
验证码 换一张
取 消