0

Is there a way to know from which object a method (a Function object) came from? tx

fra-k
  • 1

2 Answers2

1

The keyword "this" will give you the object the method ("function") is located (unless you are using delegates.)

You can use arguments.callee to get a reference to the current function, but there's no arguments.caller to get the object calling your function. You'll have to pass that object as an argument.

http://livedocs.adobe.com/flex/2/langref/arguments.html#callee

Andir
  • 2,063
  • 1
  • 15
  • 22
0

Not altogether orthodox, nor efficient, but you could play around with this overflow user's original post:

StackTrace in Flash / ActionScript 3.0

Community
  • 1
  • 1