关于在 Facebook 画布中定位 Flash 电影的问题,我遇到了一些麻烦。
Flash 影片的大小为 760x600 像素。所以我已经将画布宽度的 facebook 应用程序高级设置设置为固定(760 像素),高度设置为固定(800 像素)。
问题是,我得到了一个水平滚动条,并且只显示了 750 像素的 flash 电影,因为 flash 电影似乎在 canvas.x = 10 px 处对齐,而不是在 x = 0 px 处对齐。
有没有办法设置闪光电影的位置?最好在 Flash-As3 中?
提前致谢!
更新
感谢您输入尼拉吉!不幸的是,我从未对 CSS 做过任何事情。这是我的“index.html”,您能告诉我如何将您的示例集成到 html 代码中吗?
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<!-- Include support librarys first -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
</head>
<body>
<div id="fb-root"></div><!-- required div -->
<div id="flashContent">
<h1>You need at least Flash Player 10.2 to view this page.</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<script type="text/javascript">
//This example uses dynamic publishing with swfObject. Login is handled in the swf
//Note we are passing in attribute object with a 'name' property that is same value as the 'id'. This is REQUIRED for Chrome/Mozilla browsers
swfobject.embedSWF("example.swf", "flashContent", "760", "600", "10.1", null, null, null, {name:"flashContent"});
// redirect
function redirect(id,perms,uri)
{
var params =
window.location.toString().slice(window.location.toString().indexOf('?'));
top.location = 'https://graph.facebook.com/oauth/authorize?client_id='+id+'&scope='+perms+'&redirect_uri='+uri+params;
}
</script>
</body>
</html>
非常感谢!