1 Reply Latest reply on Jul 19, 2007 6:08 PM by ntsiii

    addEventListener

      Is this possible?

      submitButton.addEventListener(MouseEvent.CLICK, submitHandler(event:MouseEvent, dgID:DataGrid));

      public function submitHandler(e:MouseEvent, dg:Datagrid):void{
      //Do things to manipulate the datagrid here like
      // this.id = dg.selectedItem.id
      }


      Thanks