PDA

View Full Version : Buffer mouse events


lucas_wallsi
12-09-2007, 09:37 AM
Does anyone know whether Flash Buffers Mouse Clicks

I have an function that I only want to execute one call at a time, this funciton is executed by a Mouse Click. I have a boolean value which protects the function from responding to another mouse click while the function is in progress.

If I double click the mouse on the button it will complete one pass of the function and then another.

I don't think this is hindering the application now as it is waiting for one to finish before the other, however the way it is behaving suggests that Flash has buffered the second press.

Can anyone confirm this for me?

Thanks,

Nathan

jaga
12-09-2007, 02:54 PM
how do you click twice before a function finishes executing? how long does your function take to execute?

ivanparas
12-09-2007, 04:19 PM
Try removing the mouse click listener while the function is executing and adding it again when the function ends.