开发者

getDefaultApplication is not a function

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜