2 Replies Latest reply on Feb 22, 2010 12:28 AM by info@seltzlab.com

    help with HTMLLoader

    info@seltzlab.com

      Hi all,

      I'm trying to load an html page inside a HTMLLoader object, but it seems that the page loaded (test.html) can't load a javascript file

      In my application:

      var content = new window.runtime.flash.html.HTMLLoader();
      content.navigateInSystemBrowser = true;
      var url = new window.runtime.flash.net.URLRequest('app:/test.html');
      url.data = new  window.runtime.flash.net.URLVariables('x=1');
      content.load(url);
      

       

      test.html

      <html>
          <head>
              <title>test.html</title>
              
              <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
              <script type="text/javascript" src="lib/air/AIRAliases.js"></script>
              <script type="text/javascript" src="lib/air/AIRIntrospector.js"></script>
              
              <script type="text/javascript">
      
              air.Introspector.Console.log('hello');
      
              </script>
          </head>
      
          <body>
              <div id="print-header">HERE WE ARE</div>
              <div>.....</div>
          </body>
          
      </html>
      
      

       

      Aptana console tell me:

      You need to include AIRIntrospector.js in your application sandbox.
      at app:/lib/air/AIRIntrospector.js : 1920

       

      Where I'm wrong?

      I'm using Air 2.0beta2 on a 64bit Ubuntu Linux

       

      Thanks for any help,

      Antonio