3 Replies Latest reply on May 26, 2009 4:32 AM by FlexHelpNeeded

    How to autoclick/run a button after Alert.Show() Event?

    FlexHelpNeeded

      Hey Guys

       

      So I have a alert.show happening for something like

       

      public function test(evt:ResultEvent):void
      {
       if (evt.result.success == "yes")
         {
           mx.controls.Alert.Show("Yay!!!")
          }
       if (evt.result.success == "no")
        {
          mx.controls.Alert.Show("Nay")
        }
      }
      

       

      Now I have another button called

       

      <mx:Button label="Reload" id="Reload" />
      

       

      I want that if the sucess == yes scenario is run.. After the popup box comes and a person click OK.. the reload button is run..

       

      Please tell me how to do so??

       

      Regards