one touch button ??

hey guys i need help. what i want to do is have my button disabled if its pressed for more than a seconds or so. the only way to use it again is if you take your finger off and then use it again which would make some other action happen such as move. cause right now i have it working to move but i dont want people to hold the button down to make it move. i need them to take their finger off and then press it again???
Comments
http://www.youtube.com/user/GameSaladCookbook#p/u/7/tJ6ZYERfatY
If I had this problem, I might try a timer. For .25 seconds... do something.
...or, I'd chuck everything in a rule...
If mouse button is down.
and self.button-ready is true...
then run behaviors.
After .25 seconds, change self.button-ready to false.
If mouse button is up, change self.button-ready to true.
thanks for the reply ill let you know if it works
Ill explain what to do for the move left button then you can do the rest
In the move left button have a rule when touch is pressed
-change attribute moveLeft to 1
then under that behavior in that same rule put a timer after 1 second run to competion checked
then in that timer put a change attribute behavior changing attribute move left to 0
then in the otherwise section of the rule have a change attribute behavior changing moveLeft to 0
then in your player have a rule when attribute moveLeft=1
-move left
Then repeat for the rest of the buttons except switching the attribute so it matches the button your doing. Move right button with move right attribute, ect.
Then do the same in your player when attribute moveRight=1 move right and the same for the rest
cheers