ローカルでテストする場合、flashvars は機能しますか? Flash Player 10 用に保存したファイルを使用して swfObject V1.5 でテストしたところ、動作しないようです。これがローカルで機能することを誰でも確認できますか。
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Screensaver</title>
<script type="text/javascript" src="swfobject.js"></script>
<style type="text/css">
body {
background-color: #ffffff;
}
#flashcontent {
width: 100%x;
height: 100%;
margin: 0 auto;
}
</style>
</head>
<body>
<div id="flashcontent">
<strong>You need to upgrade your Flash Player</strong>
This is replaced by the Flash content.
Place your alternate content here and users without the Flash plugin or with
Javascript turned off will see this. Content here allows you to leave out <code>noscript</code>
tags. Include a link to <a href="swfobject.html?detectflash=false">bypass the detection</a> if you wish.
</div>
<script type="text/javascript">
var so = new SWFObject("screensaver.swf", "main", "100%", "100%", "10", "#ffffff");
so.addVariable("rssFeedUrl", "campaign.xml");
so.write("flashcontent");
</script>
</body>
</html>
次に、フラッシュでこれを持っています。
var flashVars:Object=LoaderInfo(loaderInfo).parameters;
var rss = flashVars.rssFeedUrl;