2 Replies Latest reply on Aug 23, 2007 5:37 AM by _shelbert

    DataGrid itemFocusIn - does it work?

    DeusAquilus
      From my understanding, the DataGrid itemFocusIn event is called when a item in the DataGrid is selected, is this true?
      If so, why doesn't the following work?

      init(){
      var myGrid:DataGrid = new DataGrid();
      ...
      myGrid.addEventListener(DataGridEvent.ITEM_FOCUS_IN,focusInFunction);
      myGrid.addEventListener(DataGridEvent.ITEM_FOCUS_OUT,focusOutFunction);
      }
      public function focusInFunction(event:Event){
      trace("focusing in");
      }
      public function focusOutFunction(event:Event){
      trace("focusing out");
      }

      I get no traces from the following code. What am I doing wrong?