2 Replies Latest reply on Feb 6, 2010 8:24 AM by joakim_

    Unselect Spark List when clicking in the empty area?

    joakim_

      Hi there.

       

      I'm wondering if it's possible to unselect a Spark List when clicking in the empty area?

       

      I've attached this function to the list's click event:

       

       

      protected function list_clickHandler(event:MouseEvent):void

      {

          list.selectedIndex = -1;

      }

       

       

      But the list gets unselected even if I click on a item in the list. Is there a way to prevent the event when clicking on an item?

       

      Thanks a lot!:)