Skip to main content
Participant
Dec 9, 2013 2:50 PM UTC
Answered

How to open a url from a desktop application

Hi this may seem like a very easy question but all the topics online point to the following code....

var url = "http://www.adobe,com";
    var urlReq = new air.URLRequest(url);
    air.navigateToURL(urlReq);

However when I try to use this I keep getting an 1120 error saying that a definition for air could not be found.

Can someone please give me some fast direction?

This topic is closed to new replies. Start a new post to keep the conversation going.
Leafcutter
LeafcutterCorrect answer
Inspiring
Dec 9, 2013 3:44 PM UTC

Have you tried just using navigateToURL(urlReq); with no air. in front?

4 replies

Leafcutter
LeafcutterCorrect answer
Inspiring
Dec 9, 2013 3:44 PM UTC

Have you tried just using navigateToURL(urlReq); with no air. in front?

Translate
Participant
Dec 10, 2013 8:08 AM UTC

I tried your suggestion...

Then after hitting myself in the head multiple times I came to say thanks

I really appreciate the help.

Translate
Leafcutter
Inspiring
Dec 10, 2013 11:52 AM UTC

np - can you mark the answer as correct?

Translate