Archived:JSR-226 - SVGSVGElement.setCurrentTime() does not allow to set the animation time backwards (Known Issue)
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
Article Metadata
Compatibility
Platform(s): S60 3rd Edition, FP1 MIDP SDK
Article
Created: User:Technical writer 1
(31 Aug 2007)
Last edited: hamishwillee
(28 Jun 2012)
Contents |
Overview
The method SVGAnimator.stop() does not reset the animation time. The only way to start the animation from the beginning is to call <tt<SVGSVGElement.setCurrentTime( 0f );</tt>
Description
Resetting the animation or setting the animation backwards does not work. This also means that playing the animation backwards is not supported.
How to reproduce
This issue affects JSR-226 when running on the emulator.
Stop the animation and call SVGSVGElement.setCurrentTime(time), where time equals 0f or less than the current time retrieved with SVGSVGElement.getCurrentTime().
Solution
For resetting the animation, recreate the SVGAnimator object. Resetting the animation time back to zero will be fixed in S60 3rd Edition, FP2 MIDP SDK.


(no comments yet)