Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

help with HTMLLoader

$
0
0

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


Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>