I'm trying to prog a small app with Flash CS4/AS3/AIR 1.5 and the HTMLLoader
Object. I can't figure out, if its possible with AIR walking the DOM in an IFRAME
with content from a remote URL (without access to the remote URL).
Maybe, so it is possible you can point me to the right direction.
If you instantiate an HTMLLoader object that loads a remote URL, you can access the DOM of that page from flash (AS3) APIs like this:
However, if your HTMLLoader loads a local page that has an <IFRAME> pointing to the remote URL, you will only be able to access the DOM of the local page. You CANNOT go from there into the <IFRAME> DOM (via contentWindow.document) because of the cross domain restrictions enforced by WebKit.
Hope this helps,
Dragos Georgita | Adobe AIR Engineering
Thank you for clarification.