可以使用Swipe Gesture event
import flash.ui.Multitouch;
import flash.ui.MultitouchInputMode;
import flash.events.TransformGestureEvent;
import flash.events.GestureEvent;
Multitouch.inputMode = MultitouchInputMode.GESTURE;
var mySprite:Sprite = new Sprite();
var myTextField:TextField = new TextField();
mySprite.graphics.beginFill(0x00c4ff);
mySprite.graphics.drawRect(0,0,40,40);
addChild(mySprite);
function swipehandler(evt:TransformGestureEvent): void {
myTextField.text = "I've been swiped";
myTextField.y = 50;
addChild(myTextField);
}
mySprite.addEventListener(TransformGestureEvent.GESTURE_SWIPE, swipehandler);
此外,對於事件本身,你必須定義了MovieClip的scrollRect屬性請參閱本:HTTP ://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayObject.html#scrollRect – Jan 2014-10-06 08:35:55