swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] how to avoid loops ?


From: Matthias Kramm
Subject: Re: [Swftools-common] how to avoid loops ?
Date: Fri, 27 Aug 2004 16:59:07 +0200
User-agent: Mutt/1.5.6i

On Fri, Aug 27, 2004 at 02:02:31AM +0200, Brainstorm wrote:
> I've made this simple sc script:
> 
> .flash name="pisamorena.swf" version=5 fps=25
>     .jpeg pis "pisa.jpg" quality=80%
> 
>     .put pis x=0 y=0 scalex=50 scaley=50
>     .frame 450
>     .change pis x=0 y=0 scalex=200 scaley=200
> .end
> 
> Now, how can I prevent this swf from looping forever ? I've been
> reading the swf file spec, but I'm lost, I can't see a field to
> specify the number of loops :-(

Whether a flash file loops is determined by the way it is embedded
in the html page.

If you do a 
    swfdump -e pisamorena.swf
you sould see something like:

<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 WIDTH="200"
 HEIGHT="200"
 
CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0";>
  <PARAM NAME="MOVIE" VALUE="pisamorena.swf">
  <PARAM NAME="PLAY" VALUE="true">
  <PARAM NAME="LOOP" VALUE="true">
  <PARAM NAME="QUALITY" VALUE="high">
  <EMBED SRC="pisamorena.swf" WIDTH="200" HEIGHT="200"
   PLAY="true" ALIGN="" LOOP="true" QUALITY="high"
   TYPE="application/x-shockwave-flash"
   PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer";>
  </EMBED>
</OBJECT>

...which is what you usually put in your HTML code.
Now, in the above output, there are those two "LOOP" variables
set to "true". If you set these to "false", the file will stop looping.

Greetings

Matthias






reply via email to

[Prev in Thread] Current Thread [Next in Thread]