Lewey
05-10-2004, 07:03 PM
I was just wondering if there was a way to reset the base timeline, my problem is I have several different animations set to start and stop and different times and I would like a reset button to reset the base time back to 0. Also possibly a general loop so that I could reset the time after a certain number of seconds. Thanks.
-Lewey
Lewey
05-10-2004, 08:48 PM
The problem I have is that I can bind all the begin commands of my animations to a some button.click, but then how do you automatically start the animation without the user having to click the button first?
Thanks.
-Lewey
Anonymous
05-11-2004, 12:56 AM
I was just wondering if there was a way to reset the base timeline, my problem is I have several different animations set to start and stop and different times and I would like a reset button to reset the base time back to 0. Also possibly a general loop so that I could reset the time after a certain number of seconds. Thanks.
Use setCurrentTime() to reset or give value to timeline
See example from tutorial about scripting
http://www.learnsvg.com/tutorial2/example/setCurrentTime.svg
Michel
Anonymous
05-11-2004, 01:01 AM
The problem I have is that I can bind all the begin commands of my animations to a some button.click, but then how do you automatically start the animation without the user having to click the button first?
You can give many values in begin as by example
begin="0;button.click"
and animation will begin when svg is loaded and also when user click button
You can also start animation by script, you write begin="indefinite"
and in script you use beginElement()
http://www.learnsvg.com/tutorial2/example/beginElement.svg
or with some value beginElementAt()
http://www.learnsvg.com/tutorial2/example/beginElementAt.svg
Michel