在aspx文件中插入flash文件

<OBJECT codeBase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
height="300" width="100" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>
<PARAM NAME="_cx" VALUE="2646">
<PARAM NAME="_cy" VALUE="7938">
<PARAM NAME="FlashVars" VALUE="">
<PARAM NAME="Movie" VALUE="leftgg.swf">
<PARAM NAME="Src" VALUE="leftgg.swf">
<PARAM NAME="WMode" VALUE="Window">
<PARAM NAME="Play" VALUE="-1">
<PARAM NAME="Loop" VALUE="-1">
<PARAM NAME="Quality" VALUE="High">
<PARAM NAME="SAlign" VALUE="">
<PARAM NAME="Menu" VALUE="-1">
<PARAM NAME="Base" VALUE="">
<PARAM NAME="AllowScriptAccess" VALUE="">
<PARAM NAME="Scale" VALUE="ShowAll">
<PARAM NAME="DeviceFont" VALUE="0">
<PARAM NAME="EmbedMovie" VALUE="0">
<PARAM NAME="BGColor" VALUE="">
<PARAM NAME="SWRemote" VALUE="">
<PARAM NAME="MovieData" VALUE="">
<PARAM NAME="SeamlessTabbing" VALUE="1">
<PARAM NAME="Profile" VALUE="0">
<PARAM NAME="ProfileAddress" VALUE="">
<PARAM NAME="ProfilePort" VALUE="0">
<embed src="leftgg.swf" quality="high" pluginspage=" http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="100" height="300"> </embed>
</OBJECT>
把上面这些代码放在Body标签内,把leftgg.swf换成你的flash影片名就行了(把flash影片要和页面在同一目录)
<object data="fanshu.swf" type="application/x-shockwave-flash" width="560" style="left: 226px; width: 560px; position: absolute; top: 173px; height: 400px "> <param name="movie" value="fanshu.swf" />
运行成功!!!

你可能感兴趣的:(Flash)