0 Replies Latest reply on May 12, 2010 8:37 AM by Chet Haase

    [svn:fx-trunk] 16064: Initial checkin of "true autoReverse" feature.

    Chet Haase Level 3

      Revision: 16064

      Revision: 16064

      Author:   chaase@adobe.com

      Date:     2010-05-12 08:37:49 -0700 (Wed, 12 May 2010)

      Log Message:


      Initial checkin of "true autoReverse" feature. This feature adds no new API, but does add new behavior to the existing autoReverse property on Transition. Now, if autoReverse="true", any transition declared from/to the opposite states of the currently-requested state change can be used as a transition for this state change, played in reverse. This essentially means that you can author a single reverse for a forward direction and have the system play that transition in reverse for the opposite direction. Previously, you needed to author both directions, and take care to make them symmetric, in order to get them to play correctly when reversing in the middle. Note that if you author a -to- Transition (any to any), the new reversing behavior does nothing for you, because there is no way for the system to detect the forward (and thus the reverse) direction, so that transition will always play in the declared direction.

      The main functionality needed to get this working was bolstering the currentSupport for playReversedFromEnd that already existed in Effect (along with the playReversed functionality in effect instances). There was also some timing engine details in Animation to make it work correctly, especially with startDelay.

      Some work was done to make Fade work correctly when playing in reverse, though there is still a problem with some of the auto-fade functionality (fading items because of visible/parent changes between states) when the Fade effect has a startDelay.


      QE notes: Tested on existing effects tests to make sure new behavior didn't break anything. But need new tests specifically around this new behavior.

      Doc notes: Added new docs to Transition.autoReverse to describe the new behavior

      Bugs: None

      Reviewer: Corey

      Tests run: checkintests, Mustella spark/effects, mx/effects

      Is noteworthy for integration: No


      Modified Paths:




          flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/ParallelInstanc e.as

          flex/sdk/trunk/frameworks/projects/framework/src/mx/effects/effectClasses/SequenceInstanc e.as




          flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateInstance .as