2 Replies Latest reply on Apr 27, 2011 12:04 AM by nikos101

    ToggleButtonBase  FlexEvent.VALUE_COMMIT

    nikos101 Level 2

      In spark sdk    ->   ToggleButtonBase.as

       

      what is the point of this code:  dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));

       

       

      in

       

          public function set selected(value:Boolean):void
          {
              if (value == _selected)
                  return;

       

              _selected = value;           
              dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));

              invalidateSkinState();
          }