swfobject和flash外部接口
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了swfobject和flash外部接口相关的知识,希望对你有一定的参考价值。
var chatTall = null; //SET TO NULL UNTIL LOADED function sendGen(genType) { chatTall.sendGender(genType); } //SEND USING FLASH ExternalInterface var flashvars = {}; var params = {}; var attributes = { id: "chatTall", name: "chatTall" }; swfobject.embedSWF("signup/images/drillcams/chatTall.swf", "flashcontent", "138", "419", "9", false, flashvars, params, attributes, function(e) { chatTall = e.ref;}); </script> /*ActionScript*/ import flash.external.ExternalInterface; function genType(str:String):Void { debugTxt.text = str; } ExternalInterface.addCallback("sendGender",this,genType);
以上是关于swfobject和flash外部接口的主要内容,如果未能解决你的问题,请参考以下文章
SWFObject: Javascript Flash Player detection and embed script
如何防止 Javascript 菜单隐藏在 Flash 视频 (SWFObject) 下