Skip to main content
Participant
July 12, 2011
Question

navigateToURL not working with Air for iOS

  • July 12, 2011
  • 1 reply
  • 2045 views

Hi,

  I have created a game in flash for iOS (iPad). The game works fine, but I am trying to call a URL on the click of a button.

There is no response on click.

Below is the code

externalcallButton.addEventListener(MouseEvent.CLICK, moregames)

private function moregames(e:MouseEvent){

     var urlReq = new URLRequest("www.example.com/iphonegames");

     navigateToURL(urlReq);

}

Please help me on this...
Regards
Santosh Bhagat

This topic has been closed for replies.

1 reply

relaxatraja
Inspiring
July 12, 2011

Please make sure whether your connection is enabled.

Participant
July 13, 2011

I'm also suffering with the same problem

How can i check whether my connection is enabled or not.

Participating Frequently
July 13, 2011

Hi,

Are you able to open the URL in browser? Could you put the navigateToURL call in a try and catch block and see the error you are getting?

Thanks,

Sanika