At 3:51 PM -0500 12/9/03, you wrote:
Hi again...

With actionscript's arguments.caller property of a function, you can
tell what function is calling the function you're currently in.

Neat, so I'm wondering if Director has an equivalent.  I have a handler
that can be called by one of two other handlers, and I'd like to be able
to find out which is the handler that calls the current one.  I'm not
sure if ancestor is the right term.

I don't believe 'ancestor' is what you want.


place a break point in the handler you want to know about.

Then when it breaks into the debugger (pauses), look in the upper left pane for the handler stack
the handler above is the one that called it
selecting that handler will show the statement within that handler that called it.


note: If the handler of interest is one that executes all over the place & you are interested in a particular situation, you use the control menu to 'Ignore Break Points' until you are near the desired situation.

hth
-Buzz


Always thankful, Michael M.

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to