无法在ASP.NET C#中显示嵌入式Flash [英] Cannot display Embed Flash in ASP.NET C#

查看:103
本文介绍了无法在ASP.NET C#中显示嵌入式Flash的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hellooo ..我有一个Flash文件,该脚本带有用于旋转随机图像的脚本,后跟xml文件以将图像渲染到Flash中.我尝试将flash(.swf)嵌入到aspnet,但不显示任何内容,而只是在Flash上​​显示背景. Flash版本9.0请您帮忙...

以下是脚本:

hellooo..I have a flash file with the script for rotate random images follows with xml file to render images into flash. i try to embed flash(.swf) to aspnet, but does not display anything just display background on flash. flash version 9.0 Please your help...

The following is the script :

<object width="775" height="245" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
   <param value="banner/main.swf?xml_path=banner/images.xml" name="movie"/>
   <param value="undefined" name="FlashVars"/>
   <param value="sameDomain" name="allowScriptAccess"/>
   <param value="high" name="quality"/>
   <param value="false" name="menu"/>
   <param value="transparent" name="wmode"/>
   <embed width="775" height="245" pluginspage="http://www.macromedia.com/go/getflashplayer" 
    type="application/x-shockwave-flash" wmode="transparent" menu="false" quality="high" allowscriptaccess="sameDomain" flashvars="undefined" src="banner/main.swf?xml_path=banner/images.xml"/>
</object>




[edit]已添加代码块-OriginalGriff [/edit]




[edit]Code block added - OriginalGriff[/edit]

推荐答案

使用^ ] javascript库.

这样做:
It''s fairly common to use the SWFObject[^] javascript library.

Doing it like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
   <head>     
     <title>SWFObject dynamic embed - step 3</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">
        swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0");
     </script>
 </head>   
  <body>     
   <div id="myContent">       
     <p>Alternative content</p>     
    </div>   
   </body> 
</html>



最好的问候
Espen Harlinn



Best regards
Espen Harlinn


这篇关于无法在ASP.NET C#中显示嵌入式Flash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆