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.sweet...@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@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@cos.name Department of Statistics, Purdue University [[alternative HTML version deleted]] __ R-help@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.
Re: [R] svg2swf - controlling the looping of flash files
Hi Paul, One workaround for this problem is to manually edit the HTML that contains the Flash animation, by adding a loop parameter in the embed tag: embed width=480 height=480 name=plugin loop=false src=a.swf type=application/x-shockwave-flash This works for Firefox at least. Best, Yixuan 2015-03-10 12:09 GMT-04:00 Paul Sweeting paul.j.sweet...@gmail.com: 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@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.sweet...@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@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@cos.name Department of Statistics, Purdue University -- Yixuan Qiu yixuan@cos.name Department of Statistics, Purdue University __ R-help@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.
Re: [R] svg2swf - controlling the looping of flash files
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@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.sweet...@gmail.com mailto:paul.j.sweet...@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@r-project.org mailto:R-help@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@cos.name mailto:yixuan@cos.name Department of Statistics, Purdue University [[alternative HTML version deleted]] __ R-help@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.