if (ExternalInterface.available) {
ExternalInterface.call('');
}

 

you can use ExternalInterface.call in actionscript to call any java script
function. 

The javascript can be wrapped in script block of index.template.html.

 

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of vijay95052
Sent: 08 February 2008 1:40 AM
To: [email protected]
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

 

<<attachment: ~WRD001.jpg>>

<<attachment: image001.jpg>>

<<attachment: image002.jpg>>

Reply via email to