Some time we need communication between ActionScript and the SWF container for example, an HTML page with JavaScript . So Adobe Doc has a class ExternalInterface , which solves this problem.
First import :
import flash.external.ExternalInterface;
Now we can use call() method :
try
{
ExternalInterface.call("yourFunction",argumentList);
}
catch(e){}
0 Comment(s)