flash和js通过类ExternalInterface进行交互。
ExternalInterface有两个方法call和addCallback:
1、ExternalInterface.addCallback("在js里可调用的flash方法名",flash内方法) //在js里调用flash里的方法
2、ExternalInterface.call("js方法",传给js的参数) //在flash里调用js里的方法