在本地传递FlashVar和发短信

在本地传递FlashVar和发短信,flash,swfobject,Flash,Swfobject,在本地测试时,FlashVar是否工作?当我使用为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"

在本地测试时,FlashVar是否工作?当我使用为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;

我尝试过SWFObject2.2(最新版本),html在本地工作,参数传递没有任何问题

我想知道您为什么不使用最新版本的SWFObject。在您的情况下,代码如下所示

swfobject.embedSWF(
                "screensaver.swf", "main", 
                "100%", "100%", 
                "10", "", 
                { rssFeedUrl: "compaign.xml" }, {}, {});

好的,开始工作了,我不确定问题出在哪里。