You need to call a function on the other side, not run eval of a string.
Of course, the one function you put in could eval the string you pass in

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of thegators_2002
Sent: Monday, August 25, 2008 2:24 PM
To: [email protected]
Subject: [flexcoders] External Interface: Do I have to have a javascript
function?

 

When I call from a Flex swf to the host aspx page, do I have to have a
javascript function that will answer? Can I directly access a hidden
field on the page from Flex?

I would like to do something like this:

ExternalInterface.call("window.document.getElementById('hidBVPerm').valu
e");

But the aspx page thinks that is the name of a function I am passing.
I want to know if there is a way I can just get the value of that
hidden field without having to write a javascript function?

Thanks,
Pete

 

Reply via email to