9 Replies Latest reply on Nov 12, 2009 9:42 AM by pauland

    Flex Process Flow

    Zolotoj Level 3

      I have the following code sample:

       

      // check if a job number is a valid system job number 
      if (validateJob() == false)
           return;
      else
           // validate label quantity
           if (quantity.text == "")
           {     
                quantity.setFocus();
                Alert.show("Invalid Label Quantity!", "Error");
                return;
           }
      

      What I want is that the else "waits" till validateJob() returns a value. But it's not what is happening: I see "Invalid Label Quantity!" before validateJob gets processed. Any idea?

       

      Thanks