View Full Version : Double Click In List Component
dub_beat
03-10-2008, 05:34 PM
Hi,
Ive noticed that the list component dosnt have any event for double clicking.
Could somebody point me in the right direction of getting a double click event to work for a list component? What would be involved?
Thanks,
dub
straydog
03-10-2008, 05:45 PM
try setting "doubleClickEnabled" to true and you should be able to use double on components
dub_beat
03-10-2008, 05:49 PM
Ok Interesting.
How would I implement that after the components double click has been set to true?
Is it still done through the mouse event?
dub_beat
03-10-2008, 05:52 PM
Ive got
clipListBox.addEventListener(MouseEvent.DOUBLE_CLI CK,clipDoubleClicked);
public function clipDoubleClicked(event:MouseEvent){
trace(event.target.selectedItem.label)
}
but it gives me errors
dub_beat
03-10-2008, 06:03 PM
its ok,
I didnt realize that you have to use
ListEvent.ITEM_DOUBLE_CLICK
thanks
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.