Skip to main content
Participant
December 9, 2013
Answered

How to open a url from a desktop application

  • December 9, 2013
  • 4 replies
  • 542 views

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.
Correct answer Leafcutter

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

4 replies

Leafcutter
LeafcutterCorrect answer
Inspiring
December 9, 2013

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

Participant
December 10, 2013

I tried your suggestion...

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

I really appreciate the help.

Leafcutter
Inspiring
December 10, 2013

np - can you mark the answer as correct?