开发者

NativeProcess in AIR using JavaScript

开发者 https://www.devze.com 2023-01-23 22:03 出处:网络
I am running the following from inside of Aptana: <html> <head> <title>New Adobe AIR Project</title>

I am running the following from inside of Aptana:

<html>
<head>
<title>New Adobe AIR Project</title>
<script type="text/javascript" src="lib/air/AIRAliases.js"></script>
<script>
function init() {
   if(air.NativeProcess.isSupported) {
        alert("NativeProcess is supported.");
    } else {
        alert("NativeProcess not supported.");
    }

};
</script>
</head>
<body onload="init()">
</body>
</html>

And it says that NativeProcess not supported.

Do I need to com开发者_如何学Gopile this in order for it to work?

I thought I would be able to test it from inside of Aptana.


i've never used Aptana, although i assume the solution will be the same, but in Flash CS5 you can test native processes with ADL by selecting only the Extended Desktop profile in the AIR settings.

native process only work for desktop applications packaged as native installers.


Update

you need to have this somewhere in your code or descriptor file

<supportedProfiles>extendedDesktop</supportedProfiles>

read this for more info about device profiles for AIR: Device Profiles

0

精彩评论

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