Skip navigation
Josh737373
Currently Being Moderated

looping a video

Jun 23, 2012 11:14 AM

I'd like to make a swf video automatically loop on my webpage. It seems like that should be a simple matter, but I haven't been able to figure out how to do it using Flash CS6. The html code I'm using is this:

 

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

 

 

I assume there's an "autoloop" property (or something like that) that has to be set in Flash itself. But I can't find where to do that. Any links to documentation or answers would be deeply appreciated. Thanks!

 

Update: I've been searching for a solution every day with no success. I found a forum link that addresses this question here: http://forums.adobe.com/message/4336286. Two solutions are offered there but neither work. The first is to embed the flv file in the timeline, but when I do that, the file appears as noise. (I tried using different flv files, but the result is the same.) The second has a link to a tutorial that pertains to SC4, but I'm using SC6, and I didn't know how to adapt the instructions to SC6. (I found some links online that give ActionScript code, but none of the code given compiles.)

 

My goal is simple (or so I thought): get a video to automatically play and loop on a webpage (any way possible). My flv file is here: www.unlimit3dstudios.com/scene.flv

 
Replies
  • Currently Being Moderated
    Jun 28, 2012 10:57 PM   in reply to Josh737373

    Moving this to the Flash Pro - General sub-forums.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 29, 2012 7:16 AM   in reply to Josh737373

    When I substitute the absolute address:

    <param name="movie" value="http://www.unlimit3dstudios.com/scene.swf" />
    and

    data="http://www.unlimit3dstudios.com/scene.swf"

    the video loops for me in both FF and IE.... I don't see any problem.

    Post a link to the actual on-line page so others can test.

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 30, 2012 1:49 PM   in reply to Josh737373

    I don't seem to be able to reproduce any of your issues.

    I can convert the .wmv file to .flv and then embed directly into timeline. And since the default action of a .swf is to loop, I didn't have to do anything to get the compiled .swf to loop:

    http://www.cidigitalmedia.com/tutorials/loop_it/sceneb.swf

    Also produced these files

    http://www.cidigitalmedia.com/tutorials/loop_it/loop_it.swf

    http://www.cidigitalmedia.com/tutorials/loop_it/loop_it.flv

    I just didn't have any problems converting, playing, or looping any of the files.

    You should notice though, that the visual aspect of looping seamlessly from the end of the file back to the beginning doesn't really work because the visuals at the two ends of the file do not match. To match seamlessly, some of the frames at the very end of the video must exactly match a few of the frames at the start of the video. There seems to be a big jump from the visuals at the end of the video to the visuals in the first few frames.... sort of like rotating a camera 345 degress... not 360 degress.

    Both original versions have the same "jump"... your .flv as well as the .wmv.

    Also the rotation is a little jerky because there are not enough video frames when the original was created. More frames would give the opportunity to record a smaller degree of movement between frames, hence, less jerkiness from one frame to another. Again, this is not a fault or caused by the Flash part of the display, it's inherent... the jerkiness was intoduced when the original file was created.

    Don't know what else to tell you.... except,

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 30, 2012 3:42 PM   in reply to Josh737373

    I see there are some repeated first frames in the loop in your example.... strange!

    I used Flash 8 Video Encoder to convert and Flash 8 to compile the .swf files.

    If anything, I would expect Flash CS6 to do everything better!

    I'm really not sure why you are having such problems. All your processes (converting files, making a looping .swf) are very simple, common processes.

    What frame rate are you using for the .fla file? It should match exactly the frame rate of the video that you import to timeline. I used 30fps (for the quick sample), which is off by a slight fraction. I think the actual frame rate of the wmv file was 29.8 something.

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 30, 2012 4:31 PM   in reply to Josh737373

    In Flash 8, it's in the main Menu/Modify/Document.

    You can set the stage size as well as the frame rate.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 10, 2012 3:25 AM   in reply to Josh737373

    Hi

    Check whether below URL  page action script would solve your issue.

    http://www.webbydude.com/posts/17-how-to-loop-flv-in-flash-with-as2-an d-as3

     
    |
    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