[R] svg2swf - controlling the looping of flash files

Paul Sweeting paul.j.sweeting at gmail.com
Tue Mar 10 17:09:27 CET 2015


Hi Yixuan

 

Thanks for your reply. I think it would be useful to have the option of a “loop = FALSE” option in this function.  However, I’m not sure how long a shelf life swf files will have, given everything seems to be moving away from flash…

 

Paul

 

From: Yixuan Qiu [mailto:yixuan.qiu at cos.name] 
Sent: 10 March 2015 00:20
To: Paul Sweeting
Cc: r-help
Subject: Re: [R] svg2swf - controlling the looping of flash files

 

Hello Paul,

So far there is no way to stop the animation after its first run. If this feature is needed I could try to implement it in the future version of R2SWF.



Best,

Yixuan

 

2015-03-09 18:33 GMT-04:00 Paul Sweeting <paul.j.sweeting at gmail.com <mailto:paul.j.sweeting at gmail.com> >:

Hi



I'm using svg2swf to collate a number of svg outputs into an swf file.  I've
got this working (mainly.) except that I can't control the looping behaviour
of the swf file.  In other words, when it's loaded into html it loops
continuously.  Is there any way to stop the animation looping, so it just
plays through once when loaded?  The code I use is (broadly):



               svg("testplot%d.svg",onefile = FALSE)

               for(j in 1:360){

                              print(cloud(x~y*z, groups=tail,
data=norm_dots_chart, screen=list(z=0,x=0,y=j)))

               }

               dev.off()

               output = svg2swf(sprintf("testplot%d.svg", 1:360), interval =
0.04)

               swf2html(output)



Thank you!


        [[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org <mailto:R-help at r-project.org>  mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




-- 

Yixuan Qiu <yixuan.qiu at cos.name <mailto:yixuan.qiu at cos.name> >
Department of Statistics,
Purdue University


	[[alternative HTML version deleted]]



More information about the R-help mailing list