开发者

how to load a url with URLLoader in Adobe Air with javascript disabled?

i am writing an Adobe Air application using flex builder.the application loads a URL using HTML control and URLLoader.

the problem that the page has an instant redirection JavaScript that redirects the page to another one. I would like to di开发者_JS百科sable that redirection.

I think this can be achieved either by disabling JavaScript on page load or telling the HTML control that do not follow the direction. i don't know how to do that?

thank you so much.


hey, i found a solution to load html source for a remote html document without loading it in htmlloader.so the javascript will not redirect me.

here is the code (from htmlscout sample application of adobe dev).

var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE,
    function(e:Event):void
    {
        trytogetsource.text = loader.data;
    });
loader.load(new URLRequest("http://www.google.com"));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜