Skip to main content
Participant
Jul 12, 2011 12:07 PM UTC
Question

navigateToURL not working with Air for iOS

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 is closed to new replies. Start a new post to keep the conversation going.

6 replies

relaxatraja
Inspiring
Jul 12, 2011 1:15 PM UTC

Please make sure whether your connection is enabled.

Translate
Participant
Jul 13, 2011 5:56 AM UTC

I'm also suffering with the same problem

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

Translate
Participating Frequently
Jul 13, 2011 8:23 AM UTC

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

Translate