Is it possible to access remote page iframe DOM via AIR AS3 HTMLLoader?

There is a page: http://vkontakte.ru/share.php?url=google.com that has an IFRAME. I try to access IFRAME DOM:

   html = new HTMLLoader();
   var urlReq:URLRequest = new URLRequest("http://vkontakte.ru/share.php?url=google.com");
   ...

   trace(html.window.document); // return DOM object. It's ok.
   trace(html.window.document.getElementsByTagName("iframe").contentDocument); // return undefined, and that is the problem

Answers


I don't think you can do it. I tryed different approaches but the thing is : you cannot access IFrame content if your not in the same domain and even if you use loadString instead of a simple load call and even if placeLoadStringContentInApplicationSandbox is set to true. May be there is a way to cheat the integrated browser and tell him :

It's Ok, I am in the same domain.

But I don't see how do it in flash.


Need Your Help

How to enable hotspot service on jailbroken ios device

ios root jailbreak tether

I am trying to turn Personal Hotspot service on/off programmatically.

Defining a scope on User model

ruby-on-rails scope case-insensitive sql-like

When searched for "john doe", I want to return users with names such as: