On 18.11.2008, at 20:29 , Jonas Elfström wrote:

On Tue, Nov 18, 2008 at 8:18 PM, Josh Cronemeyer
<[EMAIL PROTECTED]> wrote:
presumably the card click function could complete much faster than you can click a mouse. So your semaphore can work perfectly well and it would still look like the card were clicked twice. I couldn't make a recommendation on
what to do without more context on what you are trying to do.

I was looking in the wrong place, there were no
slipping-through-the-holes double clicking going on.
It was my second compare of if the card already were flipped that
failed. Thanks for setting me straight!

--
Jonas Elfström


Guess you already fixed it. Grattis :)
But anyways:

                timelimit = 0.2 #seconds
image "http://help.shoooes.net/static/shoes-icon.png";, :click => proc {
                 if @in_click_event.nil? || Time.now - @in_click_event > 
timelimit
                      @in_click_event=Time.now
                      card_click()
                    end
                  }, :width=>320, :height=>240



einarmagnus



Reply via email to