prowannabe
01-12-2007, 08:54 AM
I have been trying to use a specific method from a ListBase class.. but somehow i dunno how to implement it to my Flex application.. I am at my wits end , if anyone could help me out :(
Following is the specific method in the class
\
selectItem () method
protected function selectItem(item:IListItemRenderer, shiftKey:Boolean, ctrlKey:Boolean, transition:Boolean = true):Boolean
Updates the set of selected items given that the item renderer provided was clicked by the mouse and the keyboard modifiers are in the given state. This method also updates the display of the item renderers based on their updated selected state.
Parameters item:IListItemRenderer — The item renderer that was clicked
shiftKey:Boolean — true if the shift key was held down when the mouse was clicked.
ctrlKey:Boolean — true if the ctrl key was held down when the mouse was clicked.
transition:Boolean (default = true) — true if the graphics for the selected state should be faded in using an effect.
Returns Boolean — true if the set of selected items changed. Clicking on an already-selected item doesn't always change the set of selected items.
Following is the specific method in the class
\
selectItem () method
protected function selectItem(item:IListItemRenderer, shiftKey:Boolean, ctrlKey:Boolean, transition:Boolean = true):Boolean
Updates the set of selected items given that the item renderer provided was clicked by the mouse and the keyboard modifiers are in the given state. This method also updates the display of the item renderers based on their updated selected state.
Parameters item:IListItemRenderer — The item renderer that was clicked
shiftKey:Boolean — true if the shift key was held down when the mouse was clicked.
ctrlKey:Boolean — true if the ctrl key was held down when the mouse was clicked.
transition:Boolean (default = true) — true if the graphics for the selected state should be faded in using an effect.
Returns Boolean — true if the set of selected items changed. Clicking on an already-selected item doesn't always change the set of selected items.