Hello,
Something like listed below should work with IE browser:
...
ExternalInterface.call("eval", "f1=function(x){alert(''+x);}");
ExternalInterface.call("f1", 123);
...
--
Thanks,
Vadim.
----- Original Message -----
From: vijay95052
To: [email protected]
Sent: Thursday, February 07, 2008 10:10 PM
Subject: [flexcoders] defining a javascript function from actionscript?
Hello
Is there any way i can make the actionscript/flex code in a swf to
insert a javascript function in the wrapper HTML?
we have a need to provide a javascript function in the wrapper HTML -
instead of having to write a custom HTML that includes the javascript
function and the swf, i was wondering if i can leverage the existing
wrapper HTML support in FB2 and have the javascript embedded rt into
it...
thanks
vijay