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

    Probably easy...

    VSHoward
      I have this function...

      <mx:Script>
      <![CDATA[
      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;
      }
      else
      {
      Alert.show("There are form errors", "Invalid Data Entry");
      return false;
      }
      }

      ]]>
      </mx:Script>

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