Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
New Contributor
Posts: 3
Registered: ‎07-27-2011
My Device: Playbook
My Carrier: Student
Accepted Solution

Can I open a window in the native browser from an application and how ?

Hello everybody,

 

I am currently on the project of an application for the Playbook and I am a bit stuck, I need to get the answers to these two questions :

 

- Can I open a window in the native browser from an application and if yes, how ?

- Can I trigger the bridge event to open an email in an application just like it happens in a website after a click on a link with a "mailto:" address and how?

 

Thank you in advance !

 

Kilian KLEIN.

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Can I open a window in the native browser from an application and how ?

Use navigateToURL for both.

navigateToURL( new URLRequest( 'http://google.com' ) );
navigateToURL( new URLRequest( 'mailto:joe@mail.com' ) );

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/package.html
New Contributor
Posts: 3
Registered: ‎07-27-2011
My Device: Playbook
My Carrier: Student

Re: Can I open a window in the native browser from an application and how ?

Hello John !

 

Thank you very much for your fast answer, I am not able to test that at the moment but I will let you know if it does what I wanted to do as soon as I do !

 

Kilian.

New Contributor
Posts: 3
Registered: ‎07-27-2011
My Device: Playbook
My Carrier: Student

Re: Can I open a window in the native browser from an application and how ?

Ok, so I've been able to test it on the playbook's simulator, and it works just perfectly.

 

My problem is then solved, thank you very much again !

 

Kilian.

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Can I open a window in the native browser from an application and how ?

It is best to mark a solution "solved" for future readers.