开发者

how do I find my AIR Application publisherID?

I need to find the publisherID of my native AIR application so I can use the browser invocation feature.

I have a working AIR Native Application Installer project (.exe) built with FlashBuilder 4.5 as a "signed native installer" using a self-signed certificate.

But I look in the install folder and canno开发者_如何学Got find the file 'META-INF/AIR/publisherid'. Also, I tried logging 'NativeApplication.nativeApplication.publisherID', but it shows as an empty string.

How do I get a publisherID?


You can invoke an AIR application using the described API even if the publisherID is missing. Just leave it blank, like that:

airSWF.launchApplication(appID, "", arguments);


publisherID is legacy. it's no longer used but continues to be supported for AIR applications compiled with AIR 1.5.2 and earlier.

AIR application descriptor elements: publisherID

you should refer to values in your descriptor file instead. for example, this is how you can obtain the version of your application based on that tag's value in the XML descriptor file:

var descriptor:XML = NativeApplication.nativeApplication.applicationDescriptor;
var ns:Namespace = descriptorFile.namespace();

trace("Version " + descriptor.ns::versionNumber);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜