the problem is that when i press leftkey the operation is carried out and prev image is seen. during the operation when user presses left key again the problem starts(ie the operation carried out incorrectly).how to avoid this? i want the event to be happen in sequence.
posted 9 years ago
you're trying to prevent the starting of another startanimateleft() until the current one completes?
if so, set a flag e.g.
boolean isRunning = false; then in startanimateleft()