0

我一直在 facebook 中嵌入我的简单 flash 文件,但我没有任何运气......当我在其中回显文本时,它显示......但 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;                                     

            }
4

1 回答 1

0

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

<object type="application/x-shockwave-flash" data="textfla.swf" width="650" height="700">          
   <param name="wmode" value = "transparent" > 
</object>
于 2013-06-27T08:14:49.123 回答