87,838
社区成员




import flash.external.ExternalInterface;
Button1.addEventListener("click",function(){
ExternalInterface.call("fun");//fun是js里定义的函数,按下button1触发该函数
});
<html>
<title>welcome</title>
<body>
<object width = "550" height = "400"><param name = movie value="flas.swf">
<embed src = "flas.swf" width = "550" height = "400" name = "2" align = "">
</embed>
</object>
<script language = "JavaScript">
function fun()
{
alert("hi , im flash!");
}
</script>
</body>
</html>