1 Reply Latest reply on Oct 12, 2009 9:25 PM by Yozef0

    Browse web inside air app ?

    ShaF10

      Hi Guys

       

      Is it possible to browser websites inside a air application ? If yes, can someone point me to some tutorials/guides please.

       

      Thanks

        • 1. Re: Browse web inside air app ?
          Yozef0 Level 1

          As far as I know you can render HTML in AIR (though not in Flex apps), hence you have access to the HTMLLoader class...

           

              import flash.display.Sprite;
              import flash.html.HTMLLoader;
              import flash.net.URLRequest;
          
              public class HTMLLoaderExample extends Sprite {
          
                  private var _htmlLoader:HTMLLoader;
                  private var _urlRequest:URLRequest;
          
                  public function HTMLLoader() {
                      _htmlLoader = new HTMLLoader();
                      _urlRequest:URLRequest = new URLRequest("http://www.yozef.com/");
                      _htmlLoader.load(urlReq); 
                      addChild(_htmlLoader);
                  }
              }
          
          

           

          Hope this helps