Flipping graphic with a Key

Malte Brill revolution at derbrill.de
Thu Oct 14 04:54:52 EDT 2010


Hi,

try setting a flag before doing the flipping:

on keydown pkey
     if pkey = "f" then
       if not the hasFlipped of me then
        set the hasFlipped of me to true
        DoTheFlipping
      end if
     end if	
     pass keydown
 end keydown

 on keyUp pkey
     if pkey = "f" then
      DoThe_UN_Flipping
      set the hasFlipped of me to false
    end if
     pass keyUp
 end keyUp


Hth,

Malte




More information about the Use-livecode mailing list