Skip to main content
Participant
July 12, 2011
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
July 12, 2011

Please make sure whether your connection is enabled.

Translate
Participant
July 13, 2011

I'm also suffering with the same problem

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

Translate
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

Translate