See all Insights

How to call a javascript function from flash.

Here is a small example of how to call js from flash.

Add the following code to actionscript:

on (rollOver)
{
    import flash.external.ExternalInterface;
    ExternalInterface.call(“function() {  alert(‘this works’) }”);
}

 

More info from adobe

Related Posts