AS调用JS对象不支持此属性或方法
FLASH:
this.addEventListener(MouseEvent.CLICK,function(){ExternalInterface.call("fun","bb");});
HTML:
<object id="top" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="900px" height="400px">
<param name="movie" value="p.swf" />
<embed src="p.swf" width="900px" height="400px" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
JS:
function fun(p){
alert(p);
}
FLASH中点击后可以执行fun(),但网页的左下角却出现网页上有错误,错误内容是对象不支持此属性或方法?????????????????
[解决办法]
<param name=”allowScriptAccess” value=”always” />