Forum Moderators: open
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.
<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:
stop();
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:
myVideo.stop();
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">
</embed>
</object>
;o)
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!