Skip navigation
Josh737373
Currently Being Moderated

auto playing swf file

Jun 19, 2012 9:13 AM

Tags: #swf

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?

 
Replies
  • Currently Being Moderated
    Jun 19, 2012 9:33 AM   in reply to Josh737373

    <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>

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points