Stopping looping and starting with the SWF addon?

  • 1
  • Question
  • Updated 6 years ago
  • Answered
Hi all............ Here is a quick question for those Flash gurus out there.

When I upload an SWF file to the site using the Flash SWF widget, all that happens is that it starts to play immediately....and then repeats etc.

What I actually want is for the user to be able to click on it to start it, and then it stops at the end (Or they could click on it again to stop it I suppose...either way is good).

Now... I have looked at this code:

<!--
<object width="200" height="400">
<param name="movie" value="resources/myswffile.swf">
<embed src="resources/myswffile.swf" width="200" height="400">
</embed>
</object>
-->

Which is fine, and is easy to understand and use... but im not able to add anything to it, because my skills in HTML is a bit limited.

SO................

Can anyone on here either........

1. Tell me how using the SWF widget I can achieve what I need.

or

2. Change/add to the above code to get it to do what I want.

Thanks for looking!
Photo of Shane

Shane

  • 4 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Frank

Frank

  • 111 Posts
  • 31 Reply Likes
Hello Shane,

I personally don't know of any code that can do what you require, however maybe there is. Flash (.swf) file are created with these parameters built in them, You'll need a Flash creator/editor/debugger package to do it. Or if there is some code available other that one that would completely block flash, that would be a-ok...
Photo of Shane

Shane

  • 4 Posts
  • 0 Reply Likes
Ok... Mmmmmm....

Well the file was converted from an AVI file.....so......I will take a look and see if I can get something to edit the SWF file.

Shame that there is no easy fix for this. Maybe Yola can add a Stop/Start button function to their widget in the future.

Thanks for your help.
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Hello Shane & Frank,

I recall reading something about this a while ago and just put it in the random file manager of the brain. You twigged my recollection so I went searching. This is one of the references I found which will lead you into the solutions I think. http://www.askapache.com/css/flash-sh... shows the optional attributes and possible values for controlling the display of Flash movies (swf). including the immediate play, the looping etc.
Photo of Frank

Frank

  • 111 Posts
  • 31 Reply Likes
Hey Guys, found this while looking for something else. Have'nt tried it !
Edit your prefs. hope it works...(not tested)


<object width="595" height="842">
<param name="MOVIE" value="FILENAME.swf">
<param name="PLAY" value="true">
<param name="LOOP" value="true">
<param name="QUALITY" value="high">
<embed src="FILENAME.swf" width="595" height="842"
play="true" align="" loop="true" quality="high"
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="[[http://www.macromedia.com/go/getflashplaye]r]">
</embed>
</object>
Photo of Shane

Shane

  • 4 Posts
  • 0 Reply Likes
ok...thanks guys.... I am still reading the info Gop, and I hope I can get something from it.

@Frank.... I did try the code, but all it does is to put a white box on the screen. If you right click it, the message comes up that the "movie is not loaded".

So I will have a mess with that code too as it seems to be doing something but its not quite there yet.

Cheers for your input you two. :-)
Photo of Shane

Shane

  • 4 Posts
  • 0 Reply Likes
OK.... after messing about with the code that Frank posted I got it to work....

Here is the code:
<!--
<object width="320" height="256">
<param name="MOVIE" value="Yourmovie.swf">
<param name="QUALITY" value="high">
<param name="menu" value="true">
<param name="movie"value="resources/Yourmovie.swf">
<embed src="resources/Yourmovie.swf"width="320"height="256"play="false"loop="false"menu="true"/>
</object>
-->
What this does is to turn on the flash menu when you right click the now still picture. You can then select PLAY and off it goes.

While this is ok for now, I will still be looking to put a graphic "Play Button" on to it and link it to the swf file......some how!! LOL

But thanks to Frank and Gop for your input....was very helpful guys.
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Your doing a good job Shane. Let us know how it goes.