No more ‘arguments.caller’

It seems that AS 3.0 will no longer support ‘arguments.caller’ and arguments now only has two properties ‘callee’ and ‘length’.

Removed. You can achieve the same functionality by passing arguments.callee from the “caller” function as an argument to the “callee” function. See the Examples section of arguments.callee for an example.

I found ‘caller’ a whole lot more useful than ‘callee’ and although the above is a solution there is no direct replacement for retrieving a reference to the method that invoked the current method. I believe it just isn’t possible anymore due to function not being reference based anymore, they always have a scope.

Leave a Reply