function method4As() {
alert('This is js code ')
}
ExternalInterface.call('method4As');//as
二、javascript 調用 actionscript
ExternalInterface.addCallback('callAS', function():void {
trace('This is as code');
});
var swf = document.getElementById('swfId');
swf.callAS();