I need help embedding a .swf file onto my website. I have tried all kinds of code combinations. Here's what I currently have.
<div class="article_top_img">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" >
<param name="movie" value="myfile.swf">
<param name="quality" value="high">
<param name="wmode" value="opaque">
<embed src="myfile.swf" quality="high" wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="310"></embed>
</object>
</div>
At the moment it's simply displaying the outline of the video.
I've just tried to embed a swf file to HTML file with Adobe Dreamweaver application. Name of the swf file is t0.swf, it's located on the Desktop. It generated this code block:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400" id="FlashID" title="swf file">
<param name="movie" value="../Desktop/t0.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="7.0.70.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="../Desktop/t0.swf" width="550" height="400">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="7.0.70.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
I've tried to view this html file with Google Chrome(version 30.0.1599.66 m), Mozilla Firefox (Version 24.0), Internet Explorer (Version 8) and Opera(Version 11.51). They all opened that html fine, swf animation starts playing just after opening the html. Also I've tried your code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" >
<param name="movie" value="../Desktop/t0.swf">
<param name="quality" value="high">
<param name="wmode" value="opaque">
<embed src="../Desktop/t0.swf" quality="high" wmode="opaque" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="310"></embed>
</object>
It also worked fine, except that internet explorer showed the swf animation a little bit smaller, but it worked. May be you should check your flash player plugin.
Related
I'm trying to get my flash animation working in Firefox. It works excellently in both Chrome and Internet Explorer, but when I open up the webpage in FF it doesn't load. What's the problem? I'm seriously stumped. I also checked to see if there was any issues with my browser playing Flash in general but it works.
Here's the link to the site: http://mason.gmu.edu/~klee49/dees_peanuts/about_us.html
And here's the code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="600" id="FlashID" title="Dee's Peanuts Company Animation">
<param name="movie" value="assets/deespeanutsanimation.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="10" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="assets/deespeanutsanimation.swf" width="800" height="600">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="10" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="800" height="600" /></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
Thanks for your help.
EDIT: Hi, to whoever happens to have this problem in the future, I managed a workaround by using an iframe tag instead of object.
<iframe src="assets/deespeanutsanimation.swf" width="640" height="480" title="Dee's Peanuts Company" border="0" /></iframe>
Is there anything wrong with the below code? Video is not showing up
<div style="vertical-align:middle;text-align:center;width:100%;height:100%">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" height="592" id="player" width="500">
<param name="movie" value="http://www.diareception.com/flvPlayer/Titanium1010.swf?key=key" />
<param name="FlashVars" value="userKey=key&videoIndex=4" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<embed allowfullscreen="true" allowscriptaccess="always" flashvars="userKey=key&videoIndex=4" height="592" name="player"
src="http://www.diareception.com/flvPlayer/Titanium1010.swf?key=key" type="application/x-shockwave-flash" width="500">
</embed></object>
</div>
I believe there is something wrong with your SWF file url/path. I tried replacing your swf file path with a sample SWF file and it worked perfectly fine.
Suggest your to recheck the SWF filepath.
I don't understand. I'm trying to embed a video on my site. works perfectly on all browsers (even IE8) but not chrome... tested on several machines using windows 7
this is the embed code:
<object height="226" id="ce_93792260" width="400">
<param name="movie" value="http://current.com/e/93792260/en_US" />
<param name="wmode" value="transparent" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<embed allowfullscreen="true" allowscriptaccess="always" height="226"
src="http://current.com/e/93792260/en_US" type="application/x-shockwave-flash" width="400" wmode="transparent">
</embed></object>
you can see the embed on the page here: http://www.radicalislam.org/videos/american-born-baptist-now-ruthless-islamic-terrorist
found the solution.
need to delete the file(s) gcswf32.dll
don't forget to close chrome before.
source:
http://community.spiceworks.com/how_to/show/2004
I have a .swf file that is not looping although I have added the parameter to do so. It plays just the once, and at the end of the video it stops instead of looping.
Can someone tell me what I might be doing wrong here?
<div id="video">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="211" height="316" id="FLVPlayer" style="visibility: visible; ">
<param name="movie" value="FLVPlayer_Progressive.swf">
<param name="quality" value="best">
<param name="wmode" value="opaque">
<param name="scale" value="noscale">
<PARAM NAME="loop" VALUE="true">
<param name="salign" value="lt">
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&skinAutoHide=true&streamName=ScreenOnlyDemo&autoPlay=true&loop=true">
<param name="swfversion" value="8,0,0,0">
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don't want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf">
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="211" height="316">
<!--<![endif]-->
<param name="quality" value="best">
<param name="wmode" value="opaque">
<PARAM NAME="loop" VALUE="true">
<param name="scale" value="noscale">
<param name="salign" value="lt">
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&skinAutoHide=true&streamName=ScreenOnlyDemo&autoPlay=true&loop=true">
<param name="swfversion" value="8,0,0,0">
<param name="expressinstall" value="Scripts/expressInstall.swf">
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div><!-- video end -->
It depends on what did you set in your Flash file (FLA). By default, a Flash file loops when it reaches the last frame.
FYI, to stop the loop, add a stop(); in the ActionScript at the end frame. Valid for ActionScript 1-3.
I have the following swf loaded from HTML tag and i do not use swfobject.On Google chrome i see that only after mouse click on the html page the swf file shows up.Any one knows why or what am i doing wrong here
<div>
<object id="myMovieName" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="movie.swf" name="movie">
<param value="high" name="quality">
<param value="#FFFFFF" name="bgcolor">
<embed align=""
type="application/x-shockwave-flash"
name="myMovieName"
bgcolor="#FFFFFF"
quality="high"
src="movie1.swf"
href="movie1.swf">
</object>
</div>
Have you tried takeing the embed node out of the object node?
It would look like:
<object id="myMovieName" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="movie.swf" name="movie">
<param value="high" name="quality">
<param value="#FFFFFF" name="bgcolor">
</object>
<embed align=""
type="application/x-shockwave-flash"
name="myMovieName"
bgcolor="#FFFFFF"
quality="high"
src="movie1.swf"
href="movie1.swf"/>
Thats because OBJECT node doesn't have a EMBED child node in HTML DTD, most browsers can deal with it, but apparently chrome is not one of them, but I'm guessing here.