header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Manu
Points:0
Posts:0
Answered

3/12/2011 11:20:56 PM

Title: Invoke native browser


How to open the system default browser from inside an AIR application?



1
Wilbur
Points: 510
Posts:0
Accepted Answer
3/14/2011 10:52:01 AM



you can use the following code to open the browser from an AIR application


<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script><![CDATA[
import flash.net.URLRequest;
        
public function openBrowser():void{
var myrequest : URLRequest = new URLRequest('http://www.yahoo.com');
navigateToURL(myrequest )    
}
]]></mx:Script>
    
<mx:Button click="openBrowser()" />
</mx:WindowedApplication>



Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 1+5 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions