Livecode Flushevents Problem
Posted: Wed May 07, 2014 6:11 am
Hi there,
I'm having some problems using flushevents in one of my programs.
Participants have an option to click on one of two buttons to make a response (lets call them A and B). In order to stop repetitive clicking recording when the buttons are disabled I have put code:
put flushevents (mouseup) into trash
However, what is happening is, if someone repeatedly presses on say button A while it is disabled, and then presses button B, the program is recording as if button A has been pressed again. After this the program rectifies to normal working order. This problem only happens if one of the buttons is clicked repeatedly during the time a button is disabled.
I have no idea how to stop this from happening. Can anyone help?
I'm having some problems using flushevents in one of my programs.
Participants have an option to click on one of two buttons to make a response (lets call them A and B). In order to stop repetitive clicking recording when the buttons are disabled I have put code:
put flushevents (mouseup) into trash
However, what is happening is, if someone repeatedly presses on say button A while it is disabled, and then presses button B, the program is recording as if button A has been pressed again. After this the program rectifies to normal working order. This problem only happens if one of the buttons is clicked repeatedly during the time a button is disabled.
I have no idea how to stop this from happening. Can anyone help?