Here is an AS2 example to answer your question:
//AS2
import flash.external.*;
function helloWorld():Void
{
//Do something
}
ExternalInterface.addCallback("myFunction", helloWorld);
// HTML
//AS2
import flash.external.*;
function helloWorld():Void
{
//Do something
}
ExternalInterface.addCallback("myFunction", helloWorld);
// HTML
0 Ads:
Post a Comment