1 Reply Latest reply on Aug 18, 2008 1:31 PM by VSHoward

    Probably easy...

      I have this function...

      import mx.controls.Alert;
      import mx.validators.Validator;
      private function isValid():Boolean
      var inValidArray:Array =
      Validator.validateAll([fnameInputVal, comInputVal]);
      if (inValidArray.length == 0)

      return true;
      Alert.show("There are form errors", "Invalid Data Entry");
      return false;


      If it returns true, I just want it to go to a state called main. What do I type in to achieve this?