Ryan Shripat
Ryan Shripat

Reputation: 5704

Can a Flash Application read the host page's DOM?

I know Silverlight has this capability, and I have no experience in Flash Development - I need a Flash application to read data in a hidden div on the host page.

Can this be done?

Upvotes: 1

Views: 307

Answers (2)

Justin Niessner
Justin Niessner

Reputation: 245419

Yes. In Actionscript 3 (not sure about 2) you can use the ExternalInterface object to execute any Javascript against the DOM of the page your Flash app is placed on.

ExternalInterface also gives the Javascript on your page the ability to call functions in your Flash app.

ExternalInterface - ActionScript 3.0

Upvotes: 2

steamer25
steamer25

Reputation: 9553

At the least, you could use the ExternalInterface to get stuff via JavaScript.

Upvotes: 2

Related Questions