我如何嵌入会话id();到Flash文件?

时间:2011-02-28 07:32:32

标签: php html flash

我试图给一个swf文件一个sessionid但它不能只在IE中工作,任何人都有一个想法是错的?

            <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="650" height="430" id="upload" align="middle">
                    <param name="movie" value="upload.swf?PHPSESSID=<? print session_id(); ?>" FlashVars="PHPSESSID=<? print session_id(); ?>" />
<param name="flashvars" value="PHPSESSID=<? print session_id(); ?>">
                <param name="quality" value="high" />
                <param name="bgcolor" value="#ffffff" />
                <param name="play" value="true" />
                <param name="loop" value="true" />
                <param name="wmode" value="window" />
                <param name="scale" value="showall" />
                <param name="menu" value="true" />
                <param name="devicefont" value="false" />
                <param name="salign" value="" />
                <param name="allowScriptAccess" value="sameDomain" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="upload.swf"  width="650" height="430">
                    <param name="movie" value="upload.swf?PHPSESSID=<? print session_id(); ?>" FlashVars="PHPSESSID=<? print session_id(); ?>" />
<param name="flashvars" value="PHPSESSID=<? print session_id(); ?>">
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="play" value="true" />
                    <param name="loop" value="true" />
                    <param name="wmode" value="window" />
                    <param name="scale" value="showall" />
                    <param name="menu" value="true" />
                    <param name="devicefont" value="false" />
                    <param name="salign" value="" />

                    <param name="allowScriptAccess" value="sameDomain" />
                <!--<![endif]-->
                <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
            </object>

1 个答案:

答案 0 :(得分:0)

!IE的代码不对。 参数应该写入标签, 像这样:

<object type="application/x-shockwave-flash" data="upload.swf"  width="650" height="430" flashvars="PHPSESSID=<? print session_id(); ?>"></object>

其他参数应该以相同的方式处理。