Packagecom.asfusion.controls
Classpublic class Rating
InheritanceRating Inheritance mx.core.UIComponent

Control that shows a certain number of items in a row to represent a "rating". If user selects an item, the "selectedValue" property will change and a RatingEvent will be dispatched.



Public Properties
 PropertyDefined by
  itemCount : uint
Number of items(stars) in the rating component
Rating
  liveRollOver : Boolean
Whether the component shows rollOver
Rating
  selectedValue : uint
The value selected by the user by clicking on an item.
Rating
  showSelectedValue : Boolean
Whether the component shows the selected value or not.
Rating
  value : Number
Value of the rating.
Rating
Public Methods
 MethodDefined by
  
Rating
Events
 EventSummaryDefined by
   Dispatched when the user changes the selected value by clicking on an item or when the selectedValue property is programatically changed.Rating
Styles
 StyleDescriptionDefined by
  
horizontalGap
Type: Number   Format: Length   CSS Inheritance: no
Gap between items The default value is 5.
Rating
  
overSkin
Type: Class   CSS Inheritance: no
Name of the class to use as the skin for the items when user rolls over them
Rating
  
paddingBottom
Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between the container's bottom border and the bottom of its content area. The default value is 0.
Rating
  
paddingLeft
Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between the container's left border and the left of its content area. The default value is 0.
Rating
  
paddingRight
Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between the container's right border and the right of its content area. The default value is 0.
Rating
  
paddingTop
Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between the container's top border and the top of its content area. The default value is 0.
Rating
  
selectedSkin
Type: Class   CSS Inheritance: no
Name of the class to use as the skin for the items when showing a user-selected value The default value is .
Rating
  
unselectedSkin
Type: Class   CSS Inheritance: no
Name of the class to use as the skin for the items when not showing a value
Rating
  
upSkin
Type: Class   CSS Inheritance: no
Name of the class to use as the skin for the items when showing a value.
Rating
Property detail
itemCountproperty
public var itemCount:uint

Number of items(stars) in the rating component

This property can be used as the source for data binding.

liveRollOverproperty 
public var liveRollOver:Boolean

Whether the component shows rollOver

This property can be used as the source for data binding.

selectedValueproperty 
public var selectedValue:uint

The value selected by the user by clicking on an item.

This property can be used as the source for data binding.

showSelectedValueproperty 
public var showSelectedValue:Boolean

Whether the component shows the selected value or not. If this property is true, the compoent will show the selectedValue instead of showing the value.

This property can be used as the source for data binding.

valueproperty 
public var value:Number

Value of the rating. It is the value shown unless showSelectedValue is set to true and user has changed the selected value.

This property can be used as the source for data binding.

Constructor detail
Rating()constructor
public function Rating()
Event detail
selectionChangeevent 
Event object type: com.asfusion.controls.ratingclasses.RatingEvent

Dispatched when the user changes the selected value by clicking on an item or when the selectedValue property is programatically changed.