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