Thanks Richard,
 
Your modification to pathanim.js will allow me to do what I need.  I thought it was strange that I couldn't start the next animation from it's own event listener.  My code will be much more tidy now.
 
--
John Sturgeon <><
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Richard :o
Sent: Tuesday, December 12, 2000 8:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [Dynapi-Help] Chaining animations

hi,
Regarding  Chained Path Animation and Timelines
 
Obviously there is no standard for this yet , so I'll tell you how I do it.
 
Firstly I had to adapt pathanim.js, cause you couldn't start a new animation from it's own eventlistener,
because "this.playing = false;" came after the "invokeEvent("pathstop")", so the animation was still
playing when we call the new one. after swapping these lines I added the function "stopAnimationNow()",
which stops the animation without invoking onpathstop, so the next sequence doesn't start playing automatically.
The adapted pathanim.js file is attached.
Regarding animation, basically,
 
[mini-tutorial snipped]
 
I started out replying to a question and ended up with a book,now i'm probably off the mark here and there,so maybe if you guys add your ideas/experiences/improvements we can edit this into a mini tutorial??
 
Anyway, hope it helps somebody,
 
Cheers
Richard :o
 

Reply via email to