I'm trying to get a swf file to automatically play inside a web browswer when the browser loads. I've tried the following code:
<object width="550" height="310">
<param name="movie" value="scene.swf">
<embed src="scene.swf" width="550" height="310">
<param name="autoplay" value="true">
</embed>
</object>
The problem, however, is that it doesn't play the video unless the user manually refreshes the browser. I've tested on chrome, firefox, and ie.
You'd think there would be a simple solution, since this is a common task. But I haven't found a solution yet.
The page with the video is here: www.unlimit3dstudios.com
Any ideas?
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="310" id="scene" align="middle">
<param name="movie" value="scene.swf" />
<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="scene.swf" width="550" height="310">
<param name="movie" value="scene.swf" />
<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]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.g if" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
Thanks! That was quick. I've pasted the code into my webpage (viewable here: www.unlimit3dstudios.com). The problem remains: the video only plays if I manually click refresh after going to the page for the first time. I've tested this on several different computers with several different browswers, and the result is the same in every case. (I was sure to clear the cash on all the browsers before testing.)
Could the problem be with the swf file itself? (The swf file is here: www.unlimit3dstudios.com/scene.swf)
My internet downloads at about 1mps, and the file is 2.82 mb. That means that after about 3 seconds, the video should automatically play, correct? If I refresh the website, it doesn't matter how long I wait. It won't play--until I manually refresh the website again after it's loaded.
Okay, I installed Flash CS6, and I created the swf file using Flash CS6. Now the video will automatically play! So, if you can't get your video to automatically play, it may well be something wrong with the video itself. This case is now closed.
(But now my problem is that I can't get it to automatically loop!)
North America
Europe, Middle East and Africa
Asia Pacific