Program Instruction executions? - Solved
Posted: Mon Oct 19, 2015 12:03 pm
I am working an an animation and sometimes I get some random results that appear to be related to when I move the mouse or maybe a "Send to me" instruction and I need to know how these handlers work.
I know the priority of the messages (more or less - object to card to stack).
My program uses " send to me" and card "Mouse down", "mouseV" and "mouseH" (to simulate a swipe left,right,up or down).
My question is how does LiveCode 7 and 8 respond when it is inside a stack routine the following events occur:
1. When it comes time for the "Send to me" message to return.
a. Does it wait for the program to finish the current routine. before going to the routine with the "send to me" instruction.
b. Does it immediately exit the routine and go to the routine that has the "send to me" and after completing the "send to me" routine does not come back to point it was in the previous routine
c. Does it immediately exit the routine and go to the routine that has the "send to me" and after completing the "send to me" routine returns to the same point it was just before it exit the routine.
2. When the "card" Mouse is clicked or moved and it leaves the current routine that is running, what happens?
a. Does it wait for the program to finish the current routine
b. Does it immediately exit the current routine and go to the "card MouseDown" routine and after completing the card routine not come back to the previous routine
c. Does it immediately exit the current routine and go to the "card MouseDown" routine and after completing the card routine back to the previous routine to the same point it was just before it exit the routine.
Thanks,
David
I know the priority of the messages (more or less - object to card to stack).
My program uses " send to me" and card "Mouse down", "mouseV" and "mouseH" (to simulate a swipe left,right,up or down).
My question is how does LiveCode 7 and 8 respond when it is inside a stack routine the following events occur:
1. When it comes time for the "Send to me" message to return.
a. Does it wait for the program to finish the current routine. before going to the routine with the "send to me" instruction.
b. Does it immediately exit the routine and go to the routine that has the "send to me" and after completing the "send to me" routine does not come back to point it was in the previous routine
c. Does it immediately exit the routine and go to the routine that has the "send to me" and after completing the "send to me" routine returns to the same point it was just before it exit the routine.
2. When the "card" Mouse is clicked or moved and it leaves the current routine that is running, what happens?
a. Does it wait for the program to finish the current routine
b. Does it immediately exit the current routine and go to the "card MouseDown" routine and after completing the card routine not come back to the previous routine
c. Does it immediately exit the current routine and go to the "card MouseDown" routine and after completing the card routine back to the previous routine to the same point it was just before it exit the routine.
Thanks,
David