0 Replies Latest reply on Sep 24, 2009 8:15 AM by Zolotoj

    Testing code from Help

    Zolotoj Level 3

      I am trying to run this code following Instructions "How to use examples"

       

      The following code initializes an HTMLLoader object, configures its width and  height, loads the URL http://www.adobe.com, and adds the object to the display  list:

      package {
          import flash.display.Sprite;
          import flash.html.HTMLLoader;
          import flash.net.URLRequest;
          public class HTMLLoaderExample extends Sprite
          {
              public function HTMLLoaderExample()
              {
                  var html:HTMLLoader = new HTMLLoader();
                  var urlReq:URLRequest = new URLRequest("http://www.adobe.com/");
                  html.width = stage.stageWidth;
                  html.height = stage.stageHeight;
                  html.load(urlReq); 
                  addChild(html);
              }
          }
      }

       

      Compiling fails at  "import flash.html.HTMLLoader;" ????