
Stack
On PreOpenStack
Set the location of graphic XYZ to 50,50 // with no reference to which card graphic XYZ is on
End PreOpenStack
Card ABC
Graphic XYZ
1) What I don't understand is how the "Set the location" code in the Stack knows where to find graphic XYZ. I thought that the message path only went "up" (object to card to stack), but in this case the code happily finds my object even though it is on a card (one of many) that is below the stack.
2) Related question - I've noticed that I seem to only be able to add Custom Functions at the stack level. If I try to cut and paste the same code onto a card then the compiler just ignores the code and the function does not appear in the handler list. Is it true that custom functions must be defined on a stack and not a card? Again, they seem to be working fine in the stack, although again I don't understand how they are finding the variables that they are working with (which are defined on a card below the stack).
Thanks in advance