Thank you!

On Wed, Jan 14, 2009 at 2:50 PM, Gordon Smith <[email protected]> wrote:

>    I think describeType() provides information about method parameters.
>
>
>
> Gordon Smith
>
> Adobe Flex SDK Team
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *dorkie dork from dorktown
> *Sent:* Wednesday, January 14, 2009 12:39 AM
> *To:* [email protected]
> *Subject:* [flexcoders]Count the number of arguments on a function
>
>
>
> Is there a way to count how many arguments there are on a function from
> outside that function? For example,
>
> Class1:
> // myFunction has one parameter of type string
> myFunction(myParam:String) {
>
> }
>
> Class2:
> someFunction() {
>     // for example,
>     // i want to get a count of arguments of myFunction, name, if they are
> required and their type
>     var argumentLength = class1.myFunction.arguments.length;
>     var argumentName = class1.myFunction.arguments[0].name;
>     var argumentClass = class1.myFunction.arguments[0].class;
>     var argumentRequired = class1.myFunction.arguments[0].required;
> }
>
>
>     
>

Reply via email to