views:

165

answers:

3

I'm just curious if it's possible that Flash objects can access the DOM of the document that has embedded it.

+2  A: 

Yes, through the ExternalInterface class.

You can make calls to Javascript from within the Flash movie and get back any public information about the page that your heart desires.

Robusto
+2  A: 

Not that I know of, but they can execute javascript in the containing document, which obviously can then access the DOM itself.

Peter Bailey
If I have some AJAX calls in the parent document, can I communicate with the Flash object somehow?
devviedev
+3  A: 

Yes.

An example: http://livedocs.adobe.com/flex/3/html/help.html?content=ProgrammingHTMLAndJavaScript_07.html

Yuval A
As I understand it, that example is for AIR applications only and can't be used in regular web browsers. So the other answers, suggesting to use ExternalInterface, are probably a better fit, unless devviedev is developing an AIR application.
Lars