001
001

Reputation: 65077

How to use HTML Dom in adobe flex?

Can you use Html DOM in adobe flex to...

1) write/Auto fill in a form?

2) Read values in label? Textboxes? And use them in your program?

Upvotes: 0

Views: 493

Answers (2)

JeffryHouser
JeffryHouser

Reputation: 39408

I'm unsure if you want to access an HTML Page from inside a Flex app or if you want to access the interiors of a Flex app from inside an HTML Page. Either way, ExternalInterface is your answer.

ExternalInterface allows Flex to call JavaScript in the enclosing page. You can then use JavaScript to drill down into the HTML DOM and access the data you need.

ExternalInterface also allows a mechanism for the enclosing page to call functions in the Flex App.

More docs

If you want to use JavaScript specific DOM Accessing syntax inside of a Flex App to access parts of that Flex app, I would assume that wouldn't work.

Upvotes: 2

kagali-san
kagali-san

Reputation: 3072

Probably you can, but check out for Security limitations.

Upvotes: 0

Related Questions