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
When I substitute the absolute address:
<param name="movie" value="http://www.unlimit3dstudios.com/scene.swf" />
and
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
Thanks for checking that. Actually, that swf file was not generated using Flash (I used ConverterLight).
I want to use Flash, however. I discovered that I cannot embed my flv video into the timeline in Flash (that file is here: http://www.unlimit3dstudios.com/sceneB.flv); the video shows up as a "noise" box.
I can, however, import the flv video with "Load external video...". But then the swf file that is generated when I publish the project doesn't loop, or else is "blank" (I'm only getting blank now): see http://www.unlimit3dstudios.com/sceneB.swf
Now the "working" swf file (http://www.unlimit3dstudios.com/scene.swf only autoplays when the Internet speed is fast enough (at least that hypothesis makes sense of tests on 6 different computers on 3 different Internet speeds; and no it's not a matter of waiting longer). So, I want to generate a swf file using Flash (since then it will autoplay on any Internet speed, once the file has finally loaded.)
So, it appears that Flash is unable to open my flv file. Therefore, I've tried various converters to get the file into a format that will load into Adobe Media Encoder, which then converts the file into an flv file that loads into Flash. The problem, however, is that Flash either still won't load the flv file, or else it publishes a distorted swf file (where scenes randomly skip).
The source file is an wmv is generated with Windows Movie Maker: http://www.unlimit3dstudios.com/sceneF.wmv (I've also tried generating my source file from VideoPad Video Editor, but the problems remain.)
So at this point, I think the looping problem may actually reduce to a problem with getting my files into a "correct" version of flv. (But I really can't be sure.)
Ideally, I want to accomplish the following: convert this file (http://www.unlimit3dstudios.com/sceneF.wmv) into a swf file that will autoplay and loop (and even progressive stream, if that's possible).
Thanks for your help!
ps. I've been testing mostly with chrome (but also ie and firefox).
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
Dear admin,
Hearty thanks to your for your effort. Strangely, the swf file produced by Flash CS6 on my computer (msi, Windows 7) "jumps" backward (after it loops, and not just because of the difference in angle between the first scene and the last): see http://unlimit3dstudios.com/sceneF.swf. I used Adobe Media Encoder CS6 to convert the file to .flv. The file you got (http://www.cidigitalmedia.com/tutorials/loop_it/loop_it.swf) is what I've been aiming to achieve. (And I am very grateful to you for achieving it!) But I'm perplexed why my Flash doesn't produce such a file. Did you use Adobe Media Encoder CS6 to convert the file to .flv?
(Note the file you got from my .wmv file ( http://www.unlimit3dstudios.com/sceneF.wmv) is http://www.cidigitalmedia.com/tutorials/loop_it/sceneb.swfhttp://www.cidigitalmedia.com/tutorials/loop_it/loop_it.swf, not http://www.cidigitalmedia.com/tutorials/loop_it/sceneb.swf, since that's a different video.)
Again, thanks for your strong effort to help me loop a video (that autoplays and isn't "messed up"). You got me the result; now I need to figure out the means.
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
<< All your processes (converting files, making a looping .swf) are very simple, common processes.
Well my trial period is about up, and I've not found a way to perform these simple, common processes using Flash CS6 (after intense and diligent investigation for an extended period of time). So, bye bye Flash.
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
North America
Europe, Middle East and Africa
Asia Pacific