0 Replies Latest reply on Oct 2, 2009 8:34 AM by Chet Haase

    [svn:fx-trunk] 10806: Fixes div-by-zero bug.

    Chet Haase Level 3

      Revision: 10806

      Author:   chaase@adobe.com

      Date:     2009-10-02 07:34:25 -0700 (Fri, 02 Oct 2009)

       

      Log Message:

      ***********

      Fixes div-by-zero bug. Some animation code made the wrong assumption that duration+repeatDelay would never be zero. It's perfectly valid to have zero-dur animations. This would cause incorrect calculations in the timing code, causing us to think that we were in some repetition cycle instead of actually having ended the current zero-dur Animation.

      Fix was to special-case the "if dur==0" situation.

       

      QE notes:  None

      Doc notes: None

      Bugs: SDK-21422

      Reviewer: Hans

      Tests run: checkintests, Mustella spark/effects

      Is noteworthy for integration: No

       

      Ticket Links:

      ************

          http://bugs.adobe.com/jira/browse/SDK-21422

       

      Modified Paths:

      **************

          flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/animation/Animation.as