private function overGameMc():void {
//---確認是否能呼叫外部javascript--ok=>true,之後在執行mouseopen()方法;
if (ExternalInterface.available) ExternalInterface.call("mouseopen")
}
private function startGameMc():void {
//---確認是否能呼叫外部javascript--ok=>true,之後在執行mouseclose()方法;
if (ExternalInterface.available) ExternalInterface.call("mouseclose")
}
//-------html---------
<script type="text/javascript">
//---執行mouseopen--
function mouseopen(){
alert("open");
}
//---執行mouseclose--
function mouseclose(){
alert("close")
}
</script>
沒有留言:
張貼留言
我的留言版