This seems to work:

1) Create a function called 'hello'.
2) Call it with a parameter.

ExternalInterface.call( "eval", "window.hello = function( who ) { alert( who ); }" );
        ExternalInterface.call( "hello", "Mark" );

-Mark

On Feb 7, 2008, at 2:10 PM, vijay95052 wrote:

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




Reply via email to