I have created an as3 program in which a safe dial is rotated with the multitouch gesture, rotate. I tested this program by exporting as a .apk and installing on several android devices (EVO, Galaxy S, and Nexus one). On each device when attempting to rotate with the rotate gesture, it takes a second to initially respond (if not responding at all), jumps to a position, then begins rotating normal.
I was wondering if this initial lag is just the response time of the devices or if I need to optimize my code further. Here is the gesture part of my code:
import flash.ui.MultitouchInputMode;
import flash.events.TransformGestureEvent;
Multitouch.inputMode = MultitouchInputMode.GESTURE; this.addEventListener(TransformGestureEvent.GESTURE_ROTATE , onRotate);
//Cache dial
this.cacheAsBitmap = true;
private function onRotate(e:TransformGestureEvent):void
{
//Rotate dial
this.rotation += e.rotation;
}
Making the dial rotate correctly and accurately is essential to my program, so any advice would be greatly appreciated. If needed I can upload the .apk file.