日期:2014-05-17  浏览次数:20507 次

如何在.net网站中嵌套flash??????????
从网上找的代码如下
HTML code

<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" height="300 " width="1001 " classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 ">
                            <param name="_cx " value="12700 ">
                            <param name="_cy " value="6350 ">
                            <param name="FlashVars " value="12700 ">
                            <param name="Movie " value="flash/a.swf ">
                            <param name="Src " value="flash/a.swf ">
                            <param name="WMode " value="Window ">
                            <param name="Play " value="-1 ">
                            <param name="Loop " value="0 ">
                            <param name="Quality " value="High ">
                            <param name="SAlign " value=" ">
                            <param name="Menu " value="0 ">
                            <param name="Base " value=" ">
                            <param name="AllowScriptAccess " value="always ">
                            <param name="Scale " value="ShowAll ">
                            <param name="DeviceFont " value="0 ">
                            <param name="EmbedMovie " value="0 ">
                            <param name="BGColor " value=" ">
                            <param name="SWRemote " value=" ">
                            <embed src="flash/a.swf " quality="High " pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash "
                                type="application/x-shockwave-flash " width="1001 " height="300 " wmode="Window "
                                play="-1 " loop="0 " salign menu="-1 " base scale="ShowAll " devicefont="0 "
                                embedmovie="0 " bgcolor swremote>
                        </object>


添加之后在界面上显示不出flash动画

flash/a.swf 为flash文件路径,

top.ascx为引用flash的页面控件,a.swf为flash文件
求帮忙~~~~~~~~~~~~~~~~~~~~~~~~~~~~
也试过这个代码
HTML code
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1000" height="263">
      <param name="movie" value="../flash/a.swf" />
      <param name="quality" value="high" />
      <embed src="../flash/a.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1000" height="263"></embed>
    </object>


------解决方案--------------------
有没有试过绝对路径呢? 或者将 flash 代码不放在用户控件里是否可以正常运行呢?
HTML code

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/fl