Packagekm.components
Classpublic class ComboBox
InheritanceComboBox Inheritance UIComponent Inheritance flash.display.Sprite

The ComboBox component class.



Public Properties
 PropertyDefined by
  background : Image
[read-only] >> Reference to the background image.
ComboBox
 Inheritedduotone : Array
The duotone property can be used to convert the colors of the component into duotone.
UIComponent
  editable : Boolean
ComboBox
 Inheritedenabled : Boolean
Specifies if the component is enabled.
If a component is disabled, it will be turned into grayscale and become partly transparent.
UIComponent
  expand : BaseButton
[read-only] >> Reference to the expand button.
ComboBox
 Inheritedheight : Number
UIComponent
  iconField : String
Gets or sets the name of the field that contains the combo label icon.
ComboBox
  label : Label
[read-only] >> Reference to the label.
ComboBox
  labelField : String
Gets or sets the name of the field that contains the combo label text.
ComboBox
  list : List
[read-only] >> Reference to the list.
ComboBox
  margin : int
The margin between the bounding box of the background and the sub components inside.
ComboBox
  onChange : Function
onChange handler.
ComboBox
  prompt : String
ComboBox
 InheritedtoolTip : String
Text to use as toolTip when ToolTip is enabled.
UIComponent
  value : String
[read-only]
ComboBox
 Inheritedwidth : Number
UIComponent
 Inheritedx : Number
UIComponent
 Inheritedy : Number
UIComponent
Public Methods
 MethodDefined by
  
ComboBox
 Inherited
clone():*
Returns a clone of the component.
The skin of the component is cloned but other things like the text of a label or the items of a list aren't.
UIComponent
 Inherited
move(x:int, y:int, animationMode:int = 0, animationFrames:int = 12, easeInOut:Boolean = false):void
Moves the component to the specified coordinates.
UIComponent
 Inherited
setProperties(o:Object):void
Sets a number of properties at once.
UIComponent
 Inherited
setSize(w:int, h:int):void
Sets the size width and height.
UIComponent
Events
 EventSummaryDefined by
 Inherited The animationComplete event is broadcasted when an animated move is completed.UIComponent
   The change event is broadcasted when a different item is selected.
When the selection is changed by scripting, the event is not broadcasted.
It's also possible to use the onChange handler.
ComboBox
Property detail
backgroundproperty
background:Image  [read-only]

>> Reference to the background image.

Implementation
    public function get background():Image
editableproperty 
editable:Boolean  [read-write]

Implementation
    public function get editable():Boolean
    public function set editable(value:Boolean):void
expandproperty 
expand:BaseButton  [read-only]

>> Reference to the expand button.

Implementation
    public function get expand():BaseButton
iconFieldproperty 
iconField:String  [read-write]

Gets or sets the name of the field that contains the combo label icon.

Implementation
    public function get iconField():String
    public function set iconField(value:String):void
labelproperty 
label:Label  [read-only]

>> Reference to the label.

Implementation
    public function get label():Label
labelFieldproperty 
labelField:String  [read-write]

Gets or sets the name of the field that contains the combo label text.

Implementation
    public function get labelField():String
    public function set labelField(value:String):void
listproperty 
list:List  [read-only]

>> Reference to the list.

Implementation
    public function get list():List
marginproperty 
public var margin:int

The margin between the bounding box of the background and the sub components inside.

onChangeproperty 
public var onChange:Function

onChange handler.

promptproperty 
prompt:String  [read-write]

Implementation
    public function get prompt():String
    public function set prompt(value:String):void
valueproperty 
value:String  [read-only]

Implementation
    public function get value():String
Constructor detail
ComboBox()constructor
public function ComboBox()
Event detail
changeevent 
Event object type: flash.events.Event

The change event is broadcasted when a different item is selected.
When the selection is changed by scripting, the event is not broadcasted.
It's also possible to use the onChange handler.