如何在Facebook中嵌入swf

时间:2013-06-27 07:50:47

标签: facebook flash

我一直在facebook中嵌入我的简单flash文件,我没有运气...当我在其中回显文本时它显示...但闪存文件本身不...这里是到目前为止我做了什么:

function handleLoginStatus(response) {
            if (response.session) { //Show the SWF                                      

                //A 'name' attribute with the same value as the 'id' is REQUIRED for Chrome/Mozilla browsers
                swfobject.embedSWF("textfla.swf", "newerFlash", "650", "700", "9.0", null, null, null, {name:"newerFlash"});

            } else { //ask the user to login                    

                var params = window.location.toString().slice(window.location.toString().indexOf('?'));                 
                top.location = 'https://graph.facebook.com/oauth/authorize?client_id='+APP_ID+'&scope='+PERMS+'&redirect_uri='+REDIRECT_URI+params;                                     

            }

1 个答案:

答案 0 :(得分:0)

您可以使用object标签嵌入Flash文件,就像 -

一样
<object type="application/x-shockwave-flash" data="textfla.swf" width="650" height="700">          
   <param name="wmode" value = "transparent" > 
</object>