Skip to main content
Participant
December 9, 2013
Answered

How to open a url from a desktop application

  • December 9, 2013
  • 1 reply
  • 535 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 has been closed for replies.
Correct answer Leafcutter

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

1 reply

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?