Skip to main content
Participant
September 21, 2015
Question

count the number of circles drawn using touch events

  • September 21, 2015
  • 1 reply
  • 247 views

Hi guys , i'm new to action script. is there any way to identify/detect and count the number of circles drawn using touch events. i'm currently working on a project to automate a touch screen test where the motor with a stylus nib will keep on rotating while touching the screen, and the flash will keep on counting the number of 360 degrees completed, or just the number of 1 whole revolutions. most of the questions in the internet based on rotation is about how to make an object rotate visually. what i wanted is to count the number of 1 whole revolution using the touch screen. sorry guys newbie here, anyway thanks.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
September 21, 2015

sure.

you must have code that detects the start and end of the touch.  define a variable that detects the time (getTimer) when the touch starts.  in the end-touch listener function calculate the number of rotations expected during that touch duration.