[flexcoders] Re: Detecting a click on an empty part of AdvancedDataGrid

2008-07-31 Thread actionscript_czar
Try using the mouseFocusChange event.  I've used it a few times for deselecting items in a list when anywhere else is clicked.  For your needs, you may have to adapt it but give it a try. I have a blog post about it at: http://my.opera.com/darylducharme/blog/2007/12/14/hidden-gems-mousefocus\

[flexcoders] Re: Detecting a click on an empty part of AdvancedDataGrid

2008-07-31 Thread whatabrain
Thanks. That's very close to what I want. However, this method disables multiple-select. It deselects items when you click _anywhere_. I only want to deselect when you click on empty space. --- In flexcoders@yahoogroups.com, actionscript_czar [EMAIL PROTECTED] wrote: Try using the

[flexcoders] Re: Detecting a click on an empty part of AdvancedDataGrid

2008-07-31 Thread whatabrain
Also, when I change focus to another window and then back to the flex app, mouseFocusChange stops firing. It never fires again after that. --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Thanks. That's very close to what I want. However, this method disables

[flexcoders] Re: Detecting a click on an empty part of AdvancedDataGrid - SOLUTION

2008-07-31 Thread whatabrain
I found the solution to my problem. It depends on the fact that click is fired after itemClick. var m_processingItemClick:Boolean = false; private function onItemClick(event:ListEvent):void { processingItemClick = true; } private function onClick(event:MouseEvent):void { if