For the list components you have to set doubleClickEnabled="true" in order for them to dispatch doubleClick events
--- In [email protected], "dave_defusion" <[EMAIL PROTECTED]> wrote: > > I can't figure out why this isn't working, I thought I was missing > something silly on Monday so didn't look at it all day yesterday in > the hope that a fresh view would show me the issue but I really can't > see what's going on. > > Here's what I have: > > <mx:Script> > <![CDATA[ > > import mx.events.ListEvent; > > private function doRollOver( event:ListEvent ):void > { > trace( 'ROLL' ); > } > > private function doClick( event:ListEvent ):void > { > trace( 'CLICK' ); > } > > private function doDoubleClick( event:ListEvent ):void > { > trace( 'DOUBLE CLICK' ); > } > ]]> > </mx:Script> > > ... > > <mx:DataGrid id="tasksGrid" width="100%" height="100%" > dataProvider="{tasksData}" itemRollOver="doRollOver(event);" > itemClick="doClick(event);" itemDoubleClick="doDoubleClick(event);"> > ... > </mx:DataGrid> > > I'm compiling with Flex 2.0.1 and the only think that I can get to > fire in the above example is the itemClick event. > > I have tried adding the listeners via actionscript (within the > creation complete) but that makes no difference. I'm really not sure > why this isn't working. > > Any suggestions are greatly appreciated. >

