I'm testing this in Flash CS5 with Flash Player 10.1 Multitouch in Adobe Device Central. I managed to trace "touch begins" but not the other two, even though I'm tapping and moving at the same time. Can you help me find what I did wrong?
Actionscript Code:
package
{
import flash.display.MovieClip;
import flash.events.TouchEvent;
import flash.ui.Multitouch;
import flash.ui.MultitouchInputMode;
public class ExpTouch extends MovieClip
{
public function ExpTouch()
{
// constructor code
if(Multitouch.supportsTouchEvents)
{
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
stage.addEventListener(TouchEvent.TOUCH_BEGIN, touchBegin);
stage.addEventListener(TouchEvent.TOUCH_END, touchEnd);
stage.addEventListener(TouchEvent.TOUCH_MOVE, touchMove);
}
}
private function touchBegin(e:TouchEvent):void
{
trace("touch begins"); //works
}
private function touchEnd(e:TouchEvent):void
{
trace("touch ends"); //doesn't show
}
private function touchMove(e:TouchEvent):void
{
trace("touch move"); //doesn't show
}
}
}