Skip navigation
BLOG  |  FEBRUARY, 2009

How to call a javascript function from flash.

February 3, 2009 at 9:00 pm
by George

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


Comments