How do you get the name from arguments.callee?

I've tried using the example from the docs where you assign the value to a
property on the function and then use arguments.callee.prop to get the
value, but Flex Builder gives me an error saying "Access of possibly
undefined property prop through a reference with static type Function."

Global.as defines Function as dynamic yet FB produces an error.

If you try this example:
http://livedocs.macromedia.com/flex/2/docs/00001835.html
you'll get compiler errors.

Is there a way to add properties to a function or has this been removed in
AS3?


On 11/27/06, Daniel Freiman <[EMAIL PROTECTED]> wrote:

  take a look at arguments.callee in the top level package.  that might be
what you're looking for.

- Dan




--

Derek Vadneau

Reply via email to