<div id="flashContent">
<h1>You need at least Flash Player 9.0 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">
//Dynamic publishing with swfObject
//A 'name' attribute with the same value as the 'id' is REQUIRED for Chrome/Mozilla browsers
var flashvars = {};
var params = {"base": "../flashgame_new/"};
var attributes = {id: "iTag", name: "iTag"};
swfobject.embedSWF("flashgame.swf", "flashgame", "720", "610", "9.0", null, flashvars, params, attributes);
</script>
我可能只是犯了一个非常愚蠢的错误,因为我很累,但有人有任何建议吗?欢呼声。
答案 0 :(得分:3)
尝试在基本路径中删除“..”并引导“/”。
var params = {"base": "iTag_FLASH_new/"};
答案 1 :(得分:1)
您无需指定“base”标记,您可以将其指定为embedSWF的一部分。
根据您的信息: 该页面位于: (HTTP://blah/whatever.html) 闪光灯位于: (HTTP://blah/iTag_FLASH_new/iTag.swf)
我会通过直接在浏览器中找到swf正确加载的路径...
如果您的网页位于: (HTTP://blah/somedirectory/whatever.html) 闪光灯在 (HTTP://blah/somedirectory/iTag_FLASH_new/iTag.swf)
你需要将路径指定为“iTag_FLASH_new / iTag.swf”,注意缺少斜线。