You can track the rotation of a mobilde device by using the accelerometer sensor on it. Techniques making use of the accelerometer may be used to rotate the screen when the device is rotated or to control an object in a game by rotating the phone. Interacting with your smart phone by rotating it around has now become a common feature in many mobile applications, ActionScript 3.0 makes it very easy to add such functionality to any application you develop by using the Accelerometer Class.
This tutorial will teach you the basics on how to use the Accelerometer Class and how to control and object on stage by using it. This is a beginner tutorial that only assumes that you know the basics of AS3 Variables and Classes, and AS3 Event Handling.
View Tutorial