Is there a way to know from which object a method (a Function object) came from? tx
Asked
Active
Viewed 147 times
2 Answers
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:

Community
- 1
- 1

Billy Back Bedroom
- 592
- 8
- 23