The DropDownList class implements the basic equivalent of
the <select> tag in HTML.
The default implementation only lets the user see and
choose from an array of strings. More complex controls
would display icons as well as strings, or colors instead
of strings or just about anything.
The default behavior only lets the user choose one and
only one item. More complex controls would allow
mutiple selection by not dismissing the dropdown as soon
as a selection is made.
The data set to be displayed. Usually a simple
array of strings. A more complex component
would allow more complex data and data sets.
Implementation public function get dataProvider():Object public function set dataProvider(value:Object):void
selectedIndex
property
selectedIndex:int
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
The index of the selected item in the
dataProvider. Values less than 0 can
have specific meanings but generally mean
that no item is selected because the
user has typed in a custom entry or has
yet to make a choice.
Implementation public function get selectedIndex():int public function set selectedIndex(value:int):void
selectedItem
property
selectedItem:Object
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
The data item selected in the
dataProvider. null usually means
that the user has not selected a value
and has typed in a custom entry.
Implementation public function get selectedItem():Object public function set selectedItem(value:Object):void