Skip to main content
Adobe Employee
Nov 17, 2009 12:18 AM UTC
Question

[svn:fx-trunk] 11873: Fix for http://bugs.adobe.com/jira/browse/SDK-22800.

Revision: 11873

Revision: 11873

Author: klin@adobe.com

Date: 2009-11-16 16:17:50 -0800 (Mon, 16 Nov 2009)

Log Message:

***********

Fix for http://bugs.adobe.com/jira/browse/SDK-22800.

ButtonBase.as - Subclasses of ButtonBase were updating properties like selected and selection in the clickHandler. This caused the buttons to be in an intermediary state between the mouse up event and the mouse click event. I've added a new protected method called buttonReleased() that is called during the mouse up handler when the mouse is captured and when the mouse is hovering over the button. This allows the button to smoothly transition between states like down and overAndSelected without passing through the over state. I also separated out some of the systemManager mouse up handlers into a separate handler.

ToggleButtonBase.as, RadioButton.as - Moved the update code from clickHandler to buttonReleased.

QE notes: No

Doc notes: No

Bugs: SDK-22800

Reviewer: Evtim

Tests run: checkintests, Button, ToggleButton, RadioButton

Is noteworthy for integration: Yes

Ticket Links:

***********

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

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

Modified Paths:

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

flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RadioButton.as

flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.as

flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ToggleButtonBase.as

This topic is closed to new replies. Start a new post to keep the conversation going.