1 person found this helpful
touchevents have localX,localY,stageX,stageY properties you can use.
Gestures have phases. Swipe has a begin and end and fires off no events outside those. You'll only be able to get the coordinates of the begin of the swipe and at the end. Don't use gestures, use regular Touch events with stageX and stageY (or localX and localY if constrained to a certain area). Those events fire rapidly and continuously. You can simplify it by just listening to TouchEvent.TOUCH_MOVE since it fires so rapidly.
So basicly i can get the desired result by using regular Touch events and TouchPhase.MOVED,right?
TouchEvent.TOUCH_MOVE, I'm so starling minded these days . A quick example of a class that'll draw a rect the size of the screen. Run it in debug mode on your device and see the properties returned:
public class TouchTesting extends Sprite
public function TouchTesting()
// support autoOrients
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
protected function onA(event:Event):void
var a:Sprite = new Sprite();
protected function onMove(e:TouchEvent):void
Thanks)))I get that now
You're welcome and good luck!