W3C home > Mailing lists > Public > www-svg@w3.org > December 2007

problems with beginElement() in java

From: massimo citterio <cits@sinapto.net>
Date: Tue, 18 Dec 2007 17:21:04 +0100
To: www-svg@w3.org
Message-Id: <1197994864.5973.9.camel@delldevel1>

hi all
I'm using an animation, defined in the svg,  set to indefinite

 <animateTransform id="anim"   begin="indefinite"   dur="6s"
repeatCount="indefinite"       attributeName="transform"
     attributeType="XML" type="rotate"
	from="0 360 170" to="-90"	restart="always"/>

It works (with begin="0s" ) but I cannot trigger begin and end.

I want it to start when a certain event occurs, using java
this is the code in the event listener:

  Element elt = document.getElementById("anim");
  boolean res=((SVGAnimationElement)elt).beginElement();

even though res is true, the animation doesn't begin.
this seems the same bug reported in:

http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/200704.mbox/%3cBAY124-W8722283C86B8249D83721A75E0@phx.gbl%3e

What can I do?
Received on Thursday, 20 December 2007 03:39:58 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:38 GMT