0 Replies Latest reply on Nov 21, 2009 12:15 AM by kevinklin

    [svn:fx-trunk] 12078: Fix for change events in Slider and ScrollBar.

    kevinklin Adobe Employee

      Revision: 12078

      Revision: 12078

      Author:   klin@adobe.com

      Date:     2009-11-21 00:14:46 -0800 (Sat, 21 Nov 2009)

      Log Message:


      Fix for change events in Slider and ScrollBar. They now dispatch change events as before, whenever the user alters the value. In addition, changeStart and changeEnd events will be dispatched at the start and end of a user interaction or animation.


      TrackBase.as - Added metadata for changeStart/End events. Dispatch change, changeStart/End events when appropriate.


      Slider.as - Dispatch change, changeStart/End events when appropriate.


      ScrollBar.as - Dispatch the appropriate events. Note that changeStart/End will not dispatch when shift-clicking on a non-animating ScrollBar. Renamed animatingSinglePage to animatingOnce to better reflect its function. Refactored some method calls to the new private stopAnimation(), which is more consistent with Slider. Refactored the button handlers to make stepping more readable. Added a setValue call in animationEndHandler where we were ending up off the snapInterval when shift-clicking.


      Updated FlexEvent, ScrollBarTestScript and VideoPlayer to handle the new events.


      QE notes: Update Slider and ScrollBar tests

      Doc notes: No

      Bugs: SDK-24264

      Reviewer: Ryan

      Tests run: checkintests

      Is noteworthy for integration: No


      Ticket Links:




      Modified Paths: