[flexcoders] Re: Get name of function from within the function? Get arguments for any function?

2010-04-05 Thread tntomek
Thank you, very interesting. Now since the callee would typically be a Flex based UI control describeType might be a bit heavy (yes/no?). I am basically trying to wrap RemoteObject calls and automatically instantiate a typed ArrayCollection (since remote object will always be Array or

[flexcoders] Re: Get name of function from within the function? Get arguments for any function?

2010-04-05 Thread tntomek
To clarify, I meant arguments of a function given nothing more then a reference to that function i.e. var myFunction:Function The 'arguments' object is only valid withing the scope of a running function is it not? --- In flexcoders@yahoogroups.com, Robert VanCuren Jr robert.vancuren...@...

Re: [flexcoders] Re: Get name of function from within the function? Get arguments for any function?

2010-04-05 Thread Oleg Sivokon
Hi. It seems like what you want is what in other languages would be called a delegate or closure (function signature). This is not entirely possible in AS3, end even what is possible requires to much work to be really useful. So, please vote: http://bugs.adobe.com/jira/browse/ASL-32 :) However,

[flexcoders] Re: Get name of function from within the function? Get arguments for any function?

2010-04-05 Thread Mike
The arguments top level class works well, except when used inside a method which takes a variable number of arguments (using the ... syntax.) In that case, the SDK v3.2 compiler says '1120: Access of undefined property arguments.' I wonder if this bug was fixed in a later SDK? The project I