2 Replies Latest reply on Aug 29, 2007 12:08 AM by Nick_Sarandon_PAblo

    How change application´s state from a component´s function

    Nick_Sarandon_PAblo
      Hi, I´m doing an Flex application,
      I have created a component "usersRegister", that have next function:

      private function comprobacionBBDD():void{
      if(numero>0){
      mensaje="Perfect.\n\n\n Wellcome.";
      // HERE I WANT CHANGE THE STATE
      }else if(numero==-1){
      mensaje=mensaje+"error1";
      }else if(numero==-2){
      mensaje=mensaje+"Error2 \n\n";
      }
      Alert.show(mensaje);
      }




      The problem is that when in my application I instances the component, I would like to change my application´s state when the first "if" from the function is true.

      Can you help me??

      thanks in advance, and excuse my bad english.