We Recommend

PIC Basic: Programming and Projects PIC Basic: Programming and Projects
The simplest quickest way to get up and running with microcontrollers. makes the PC accessible to students and enthusiasts. The practicalities of programming and the scope of using a PIC are then explored through 22 wide ranging electronics projects.


Posted By

blackabee on 06/20/08


Tagged

rotation as2 Spin movement


Versions (?)


Spin - Rotation Movement


Published in: ActionScript 


Use this code on a MC to rotate to a specific point in a specific duration of time.

  1. onClipEvent(load) {
  2. rotateTo = 174;
  3. amtOfTime = 100;
  4. }
  5. onClipEvent(enterFrame) {
  6. this._rotation += (rotateTo-this._rotation)/amtOfTime;
  7. }

Report this snippet 

You need to login to post a comment.