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.
精彩评论