niteshmourya / app-inventor-for-android

Automatically exported from code.google.com/p/app-inventor-for-android
Apache License 2.0
2 stars 0 forks source link

"While being clicked" event handler for a button #1664

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
"while being clicked" loop for a button.  So we don't need to press the button 
again & again if we want to increment (or decrement) a numeric value many 
times.  Then the loop will stop when I unpressed the button.

(This will also be very good for doing animated games similar to PacMan, 
Galaga, SuperMario etc.)

For example:

When Button1.WhileBeingClicked TimeInterval = 100
Set Counter1 = Counter1 + 1
Set Label1.text to Counter1

"LongClick" does not do a loop.

Thanks,

Original issue reported on code.google.com by eleanorc...@gmail.com on 24 Jun 2011 at 10:29

GoogleCodeExporter commented 9 years ago

Original comment by weihuali...@gmail.com on 15 Mar 2012 at 7:39