Using ExternalInterface we can call javascript of the page.
if (ExternalInterface.available)
{
ExternalInterface.call("javascriptFunctionName",parameter );
}
if we neet to call swf file's function from the javascript .
ExternalInterface.addCallback("javascriptFunction", HandlerFunction);
private function HandlerFunction(returnValue:String):void
{
// code
}
and in html page in script block.
function javascriptFunction()
{
swfObjectId.HandlerFunction("hello");
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment