Patches item #416880, was opened at 2001-04-17 16:16
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305757&aid=416880&group_id=5757

Category: DynAPI 2 Other
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Christof Pohl (chripo)
Assigned to: Nobody/Anonymous (nobody)
Summary: Patch for PathAnimation.run()

Initial Comment:
Hi everybody!


In the PathAnimation.prototype.run() function, lines 79-81 read:

        if (anim.frame==0 && (this.dlyr!=null && this.dlyr.x==anim[0] && 
this.dlyr.y==anim[1])) {
                anim.frame += 1;
        }

This adjusts the frame to be played if the object that should be animated already IS 
at the 
PathAnimation's start coordinates.

This is a nice idea, but must be done BEFORE checking break-conditions in line 63:

        if (anim.frame>=anim.length/2) {
                [...]
        }

or NS 4.x will report an error in certain circumstances (IE nevertheless works fine).

This bug is present in DynAPI versions 2.5 and 2.51 as well as the current CVS 
version. I have tested this 
with NS 4.08, 4.73 and 4.76 on Win 2000 and Win 98.


Best regards,

Christof

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305757&aid=416880&group_id=5757

_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to