1 Reply Latest reply on Jun 7, 2007 4:49 AM by Newsgroup_User

    Creating Function with optional arguments Actionscript 3.0


      i am trying to create a function that accepts any number of optional arguments but due to the complier error checking I get

      Text1137: Incorrect number of arguments. Expected no more than 3.

      where as what i want to to do is pass the function any number of arguments and pull them out inside the function using the argument property

      the function that call the code i have attached is as follows

      callGatewayService("validateLogin", this.UserResults, this.UserFault, username, password )