文件名称:FlashBuilder
文件大小:5.8MB
文件格式:DOC
更新时间:2016-11-17 06:51:36
Flex mobile
Flex mobile 开发手机小项目
import flash.ui.Multitouch;
import flash.ui.MultitouchInputMode;
private function onSwipe(event:TransformGestureEvent):void{
if(event.offsetX == -1){
doSwipeLeft();
}
else if(event.offsetX == 1){
doSwipeRight();
}
}
private function doSwipeLeft():void{
navigator.pushView(NewPhoto);
}
private function doSwipeRight():void{
navigator.popToFirstView();
}
public function left_Handler(e:MouseEvent):void{
image.rotation -=90;
}
public function right_Handler(e:MouseEvent):void{
image.rotation += 90;
}
]]>