Running scripts when changing cards
Posted: Mon Jul 17, 2017 9:06 am
Hi all,
I'm noticing a problem. When users behave, ahem, faster than I anticipated, for example leaving a card when things are still happening, errors happen. Scripts are running but I've not identified objects by what card/stack they're on. So the handlers continue to run but now they cause errors because object x doesn't exist on the card that the user has now moved to.
Users have buttons they can click to move to another card. I was wondering if it would be possible to either
a. create a condition where they would not not go to another card before the running scripts had a chance to finish;
b. cancel/abort ALL running handlers before sending the message to open a different card
Any advice for me? Thanks!
I'm noticing a problem. When users behave, ahem, faster than I anticipated, for example leaving a card when things are still happening, errors happen. Scripts are running but I've not identified objects by what card/stack they're on. So the handlers continue to run but now they cause errors because object x doesn't exist on the card that the user has now moved to.
Users have buttons they can click to move to another card. I was wondering if it would be possible to either
a. create a condition where they would not not go to another card before the running scripts had a chance to finish;
b. cancel/abort ALL running handlers before sending the message to open a different card
Any advice for me? Thanks!