I need to get javascript var in my flash application. I like just setting a variable in javascript (client constraints) rather than defining a function.
Can this be done? I am trying to use ExternalInterface.call ()
AS:
ExternalInterface.call("function(){return window.someVar}", null);
JS:
var someVar = "Test";
This does not work, and I suspect that this is because ExternalInterface.call () does not like an anonymous function. Is there any way to do this?
thank
source
share