現在のプロジェクトでは、SwfObject 2.2を使用してFlashファイルを埋め込み、CRDのGurusはSwfAddress 2.3を使用してSEOのフラッシュを作成しています。SwfAddressとSwfObjectの 'callback'引数との競合
ページに両方のライブラリが含まれている場合、APIでSwfObjectコールバックを使用しようとすると、SwfObjectの読み込みが妨げられることがわかります(http://code.google.com/p/swfobject/wiki/api)。この例では、SwfAddressファイルをHTMLでコメントアウトするだけでこれを切り替えることができます。
申し訳ありません私はこれらの2つのライブラリの絶対URLを以下のコードで指すことができませんでした。
<head>
<title>SWFObject 2.2 dynamic embed with callback</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript" src="swfaddress.js"></script>
<script type="text/javascript">
function outputStatus(e) {
alert("e.success = " + e.success +"\ne.id = "+ e.id +"\ne.ref = "+ e.ref);
}
var params = {};
params.allowscriptaccess = "always";
swfobject.embedSWF("http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test6.swf", "myContent1", "300", "120", "9.0.0", "expressInstall.swf", null, null);
swfobject.embedSWF("http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test6.swf", "myContent2", "300", "120", "9.0.0", "expressInstall.swf", null, params, null, outputStatus);
</script>
</head>
<body>
<div id="myContent1">
<h1>Alternative content</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>
<div id="myContent2">
<h1>Alternative content</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>
</body>
任意のアイデア?前もって感謝します!
SWFAddress.as externalChangeイベントが発生していない問題が解決されました(swfはまだ埋め込み済みでした) – user531694