Calling AS3 Function from Javascript
import flash.external.*;
flash.system.Security.allowDomain('http://localhost');
function funcFlash()
{
//SoundMixer.stopAll();
}
ExternalInterface.addCallback("funcJS", funcFlash);
But I got errors when play it(swf file) after publishing:
Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime.
at Error$/throwError()
at flash.external::ExternalInterface$/addCallback()
at xxxx........._fla::MainTimeline/frame1()
Please help, thanks.
Flashplayer 10, XP pro.