在flash builder4.5 上利用air 扩展实现Gyroscope陀螺仪功能,在 iphone中是如何对 Gyroscope 的x,y,z三个方向上的数据进行处理的??揪心! private var test_ball:Image=new Image();
private function onChange1(e:GyroscopeEvent):void{trace("From g1: " + e.x + " " + e.y + " " + " " + e.z);test_ball.x=e.x;
test_ball.y=e.y;
test_ball.z=e.z;
}
private function onChange1(e:GyroscopeEvent):void{trace("From g1: " + e.x + " " + e.y + " " + " " + e.z);test_ball.x=e.x;
test_ball.y=e.y;
test_ball.z=e.z;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货