This content has been marked as final. Show 3 replies
Regarding double clicking the icons in a list box, in our case we have file and folder icons, we were able to fire and catch the click event but the double click event is not working for us either. I too need to know if any one has run into this problem and has a fix because this is hindering our user experience. Anyone have an answer?
When the user double clicks, the first click of the double click gets caught as a single click, and the click event is fired. I got around this by creating a custom item renderer to create a click event on the icon itself, then adding a double click event to the label of the item. Not ideal, but hope it helps!
You got my mind cranking so your fix did help me. Thank you very much. Here is my archaic workaround.
// To get around the double click on the list box adobe bug
private var doubleClickTimer:Timer = new Timer(1000, 1); // one second
private var singleClick:Boolean = false;
private function courseFiles_click():void
private function isDoubleClick():Boolean
var myReturn:Boolean = false; // default false
myReturn = true; // we get here if it is a double click so return true
if(singleClick == false)
// init timer
singleClick = true;
private function onTimerCompleteDoubleClickTimer(evt:TimerEvent):void
singleClick = false; // set it to false after the timer interval