I've got an adobe AIR application that is written entirely in HTML/Javascript (no Flash). It's mostly self-contained but there's a single link that is meant to open a url in the user's default browser. Instead, it opens it in a separate AIR browser window. How can I go about forcing AIR to open the link in the user's default browser?
In looking around, I've seen reference to this method:
air.navigateToURL
(http://livedocs.adobe.com/labs/air/1/jslr/flash/net/navigateToURL.html)
Which I've tried:
navigateToUrl: function(url) {
var request = new air.URLRequest(url);
try {
air.navigateToURL(request);
return true;
}
catch (e) {
return false;
}
},
....
<a href="#" onclick="Utilities.navigateToUrl('http://google.com')">Click here</a>
....
But it has no effect (no response from AIR and no browser opened).