Stack handler not available from cd script?

Alain Farmer alain_farmer at yahoo.com
Mon Jan 5 17:17:16 EST 2004


Happy New Year Eric,

> I have the most disturbing error. 
> Basically I have a stack with a stack script
> which is being called from a card script which
> card script is called from a button. For some
> reason the card script cannot "see" the stack
> script! And acts like there is no script!

In my experience, MetaCard is a little less reliable
than HyperCard when it comes to traversing the message
hierarchy. In my case : when a button calls a handler
in the stack, AND THEN calls a handler which is in the
btn AND in the stack, MetaTalk will oddly select the
handler in the stack instead of the one in the button.

My solution, which may be a solution for you as well,
is to *explicitly send the msg* to the object whose
script has the handler you want to execute.

Hope this helps,

Alain F

__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003


More information about the metacard mailing list