From: Michael P. <mp...@ph...> - 2001-01-11 04:00:27
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> I'm interested in having two events. A stop and an end event. Some times, I need to refresh to layer content after a layer has moved (eg. if it contains a form). Does anyone have any problems with adding this second event? <p>martin ström wrote: <blockquote TYPE=CITE>wouldn't it be better to add a noevt-parameter to stopAnimation(): <p>PathAnimation.prototype.stopAnimation = function (noevt) { <br> if (this.pathPlaying && this.pathPlaying.resets && !this.cancelThread && <br>this.dlyr!=null) this.dlyr.moveTo(this.pathPlaying[0],this.pathPlaying[1]); <br> this.stop(); <br> delete this.pathPlaying; // only deletes unstored path <br> this.playing = false; <br> if (this.dlyr != null && noevt!=false) this.dlyr.invokeEvent("pathstop"); <br>}; <p>and maybe use stopAnimationNow() just to do a stopAnimation(false) -call <p>PathAnimation.prototype.stopAnimationNow=function() { <br> this.stopAnimation(false); <br>} <p>/mrtin <p>> -----Original Message----- <br>> From: dyn...@li... <br>> [<a href="mailto:dyn...@li...">mailto:dyn...@li...</a>]On Behalf Of Raymond <br>> Smith <br>> Sent: den 10 januari 2001 11:36 <br>> To: dyn...@li... <br>> Subject: Re: [Dynapi-Dev] [Bug #128263] PathAnimation.stopAnimation() <br>> bug (& patch) <br>> <br>> <br>> I'm for including the 'PathAnimation.prototype.stopAnimationNow ' method <br>> Richard discussed. If your doing chained animations that lead to other <br>> events it's a must have. Or the whole thing repeats again. <br>> <br>> <br>> ----- Original Message ----- <br>> From: "Richard :o" <ma...@ri...> <br>> To: <dyn...@li...> <br>> Sent: Tuesday, January 09, 2001 2:32 AM <br>> Subject: Re: [Dynapi-Dev] [Bug #128263] <br>> PathAnimation.stopAnimation() bug (& <br>> patch) <br>> <br>> <br>> > Hi, <br>> > I'm glad to see pathanim tackled at last.What you're sayng is <br>> correct, and <br>> > is what I did in my modified pathanim (see: <br>> > <a href="http://www.resass.f2s.com/?menu=examples&node=1">http://www.resass.f2s.com/?menu=examples&node=1</a> or <br>> > <a href="http://www.richardinfo.f2s.com/?menu=examples&node=1">http://www.richardinfo.f2s.com/?menu=examples&node=1</a> <br>> > under "dynapi.util.pathanim.chained.html" when the servers up again) <br>> > <br>> > But I also had to add the method stopAnimation now() , which is <br>> identical, <br>> > but without <br>> > invoke-ing pathstop, so the animation could be manually halted without <br>> > starting the next one from the onpathstop listener: <br>> > <br>> > PathAnimation.prototype.stopAnimationNow = function () { <br>> > if (this.pathPlaying && this.pathPlaying.resets && <br>> !this.cancelThread && <br>> > this.dlyr!=null) <br>> this.dlyr.moveTo(this.pathPlaying[0],this.pathPlaying[1]); <br>> > this.stop(); <br>> > delete this.pathPlaying; // only deletes unstored path <br>> > this.playing = false; <br>> > }; <br>> > And I don't understand why slideBy() has been scrapped just because you <br>> can <br>> > do that manually aswell; you can do most of the <br>> > API manually, but it's easier if you can just call a method. <br>> And we still <br>> > use moveBy(), so slideBy() keeps consistency, and saves <br>> changing existing <br>> > webcode when you upgrade you're API. <br>> > <br>> > DynLayer.prototype.slideBy = function(x,y,inc,ms) { <br>> > if (x==null) x = 0; <br>> > if (y==null) y = 0; <br>> > this.slideTo(this.x+x,this.y+y,inc,ms); <br>> > }; <br>> > <br>> > Cheers, <br>> > Richard :o <br>> > <br>> > ma...@ri... <br>> > www.richardinfo.com <br>> > (Everything running on, and ported to the 19/12/2000 snapshot <br>> of DynAPI2) <br>> > <br>> > ----- Original Message ----- <br>> > From: <no...@so...> <br>> > To: <ma...@ab...>; <no...@so...>; <br>> > <dyn...@so...> <br>> > Sent: Wednesday, January 10, 2001 9:30 AM <br>> > Subject: [Dynapi-Dev] [Bug #128263] PathAnimation.stopAnimation() bug (& <br>> > patch) <br>> > <br>> > <br>> > > Bug #128263, was updated on 2001-Jan-10 00:30 <br>> > > Here is a current snapshot of the bug. <br>> > > <br>> > > Project: DynAPI 2 <br>> > > Category: API Extentions <br>> > > Status: Open <br>> > > Resolution: None <br>> > > Bug Group: None <br>> > > Priority: 5 <br>> > > Submitted by: marstr <br>> > > Assigned to : nobody <br>> > > Summary: PathAnimation.stopAnimation() bug (& patch) <br>> > > <br>> > > Details: dynapi/util/pathanim.js <br>> > > <br>> > > a bug in PathAnimation.stopAnimation() causes the onpathstop-event to <br>> fire <br>> > > before some values were set <br>> > > (this.playing=false) <br>> > > before you couldn't slide a DynLayer directly in a <br>> > > onpathstop eventListener (while this.playing still <br>> > > was true) <br>> > > <br>> > > i've moved the line <br>> > > if (this.dlyr != null) this.dlyr.invokeEvent("pathstop"); <br>> > > <br>> > > last in the method which solved the problem <br>> > > <br>> > > PathAnimation.prototype.stopAnimation = function () { <br>> > > if (this.pathPlaying && this.pathPlaying.resets && <br>> !this.cancelThread && <br>> > > this.dlyr!=null) <br>> > > this.dlyr.moveTo(this.pathPlaying[0],this.pathPlaying[1]); <br>> > > this.stop(); <br>> > > delete this.pathPlaying; // only deletes unstored path <br>> > > this.playing = false; <br>> > > if (this.dlyr != null) this.dlyr.invokeEvent("pathstop"); <br>> > > }; <br>> > > <br>> > > For detailed info, follow this link: <br>> > > <br><a href="http://sourceforge.net/bugs/?func=detailbug&bug_id=128263&group_id=5757">http://sourceforge.net/bugs/?func=detailbug&bug_id=128263&group_id=5757</a> <br>> > <br>> > _______________________________________________ <br>> > Dynapi-Dev mailing list <br>> > Dyn...@li... <br>> > <a href="http://lists.sourceforge.net/mailman/listinfo/dynapi-dev">http://lists.sourceforge.net/mailman/listinfo/dynapi-dev</a> <br>> > ____________________________________________________________ <br>> > Get your free domain name and domain-based e-mail from <br>> > Namezero.com. New! Namezero Plus domains now available. <br>> > Find out more at: <a href="http://www.namezero.com">http://www.namezero.com</a> <br>> > <br>> <br>> <br>> <br>> _______________________________________________ <br>> Dynapi-Dev mailing list <br>> Dyn...@li... <br>> <a href="http://lists.sourceforge.net/mailman/listinfo/dynapi-dev">http://lists.sourceforge.net/mailman/listinfo/dynapi-dev</a> <br>> <p>_______________________________________________ <br>Dynapi-Dev mailing list <br>Dyn...@li... <br><a href="http://lists.sourceforge.net/mailman/listinfo/dynapi-dev">http://lists.sourceforge.net/mailman/listinfo/dynapi-dev</a> <p>_______________________________________________ <br>Dynapi-Dev mailing list <br>Dyn...@li... <br><a href="http://lists.sourceforge.net/mailman/listinfo/dynapi-dev">http://lists.sourceforge.net/mailman/listinfo/dynapi-dev</a></blockquote> <p>-- <br>Michael Pemberton <br>mp...@ph... <br>ICQ: 12107010 <br> </html> |