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?
Livecode Flushevents Problem
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Livecode Flushevents Problem
Hi level7lab,
Welcome to the forum!
I just tested this in 2 buttons one field:
Not getting the same results as you are.
Simon
Welcome to the forum!
I just tested this in 2 buttons one field:
Code: Select all
on mouseUp
put the short name of me into fld 1
disable me
send enableMe to me in 5 seconds
end mouseUp
on enableMe
enable me
end enableMe
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Livecode Flushevents Problem
Hi level7lab,
1. welcome to the forum!
2. talking about music etc. is OFF-TOPIC, your question is not (Hint, Hint!
).
So I will move this thread to the correct forum.
Best
Klaus
1. welcome to the forum!

2. talking about music etc. is OFF-TOPIC, your question is not (Hint, Hint!

So I will move this thread to the correct forum.
Best
Klaus
Re: Livecode Flushevents Problem
..........
Last edited by [-hh] on Wed Aug 13, 2014 2:56 pm, edited 1 time in total.
shiftLock happens
Re: Livecode Flushevents Problem
I did not say "always"! 
