|Embed swf file onto website|
Problem with looping an embedded swf video onto a website
| 2:49 pm on Aug 22, 2008 (gmt 0)|
I was wondering if somebody could help me with a problem I am having with embedding a swf video onto a website.
I am trying to embed a .swf file onto my company website which uses a default toolkit to do so.
I have placed a swf file onto the web elsewhere and then used HTML code generated for me to link from the company website to the actual swf file.
I can see the video on the company website so the code is fine in that respect, but the problem I'm having is that the video keeps looping.
The code I am using is as follows:
<OBJECT id=player codeBase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0 height=240 width=320 align=middle classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000><PARAM NAME="_cx" VALUE="8467"><PARAM NAME="_cy" VALUE="6350"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="http://mywebaddress.com/filename.swf"><PARAM NAME="Src" VALUE="http://mywebaddress.com/filename.swf"><PARAM NAME="WMode" VALUE="Window"><PARAM NAME="Play" VALUE="-1"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="0"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE=""><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE="FFFFFF"><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="false">
I can see that it says loop value in the code, but whatever I change this to, it always changes back to this. I have tried value="0, 1, false" and the same with play value.
I personally think it is something to do with the original .swf file on the other website that controls the loop.
I cannot find any options to change the loop when creating the swf file.
Anyway, if anybody could help it would be hugely appreciated.
Thanks in advanced.
| 5:42 pm on Aug 22, 2008 (gmt 0)|
You can try (and probably have tried) this:
<PARAM NAME="Loop" VALUE="0">
If that doesn't work, it means something in the Flash is overriding the parameter. Open the Flash, and turn loop off within the Flash.
If that doesn't work, in the last frame of your Flash, add this:
Or, if the video itself is an object on the page, make sure the instance of the video has a name (example: myVideo), and wherever it's supposed to stop, do this:
| 12:55 pm on Aug 23, 2008 (gmt 0)|
Thanks for your response.
I have tried using VALUE="0". I think your right with saying its the Flash overriding the settings.
The video is not from Flash so I don't think I can put the actionscript in. The video is a swf file converted straight from an avi.
Any other ideas?
| 10:23 am on Aug 25, 2008 (gmt 0)|
Other ideas post.
I find a embed html code engine online auto gen code. This can help
Webmaster do it easy for embed most media.(wmv,wma,mp3,flv,mov,rm,swf...)
[edited by: engine at 11:05 am (utc) on Aug. 25, 2008]
[edit reason] no urls, thanks [/edit]
| 11:11 am on Aug 25, 2008 (gmt 0)|
I convert avi straight to swf and use <PARAM NAME="Loop" VALUE="false"> and it does not loop.
Maybe check your converting program if there is not a default setting somewhere that makes your swf loop.
| 11:38 am on Aug 27, 2008 (gmt 0)|
I thought that as well so I bought a program which has the option to create a .swf that does not loop, but it still loops.
Well, thanks for everyones suggestions. If anything else occurs to anyone, please let me know.
| 1:04 pm on Aug 27, 2008 (gmt 0)|
Unless you missed a bit when copying your code I just noticed that your </object> is not closed.
As a matter of interest, this is the code I use on my web pages. Maybe try it on a test page and see if it makes any difference.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="320" Height ="240">
<param name=movie value="myfile.swf">
<param name=quality value=high>
<param name="LOOP" value="false">
<PARAM NAME=menu VALUE=true>
<embed src="myfile.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="320" Height ="240" loop="False">
| 3:48 pm on Aug 27, 2008 (gmt 0)|
Staffa, the close object was there, I think I just forgot to copy and paste it. Thanks though!
But I did try your code (which is much simpler than mine!) and I thought it had worked, but it seems to only half worked.
When I first go onto the page with the swf file, it does not loop! But then if I refresh the page or go to another page and come back to it, it starts looping again.
It just seems very strange and I'm starting to think my swf files have a mind of their own!
| 5:43 pm on Aug 27, 2008 (gmt 0)|
Turner27 I just tried my page where I took the code from and either reloading or coming back from another page does not make the swf file loop.
Now I'm stumped why yours does.
| 7:39 pm on Aug 28, 2008 (gmt 0)|
Have you tried importing the .avi into flash and handling it via flash? that way you can have full control...
| 3:38 pm on Sep 9, 2008 (gmt 0)|