Move Clip Rotation

written by: Paulo Caldeira; article published: year 2007, month 05;

In: Root » Computers and technology » Flash

  Share  
|
  PL  |  NL  |  FR  |  ES  |  PT  |  IT  |  DE  |  DK  |  NO  |  SE  |  FI  |  GR  |  JP  |  CN  |  KR  |  RU  |  AE


A property like _x and _y is the movie clip property _rotation.

The _rotation property accepts a value in degrees. A circle is divided into 360 degrees. The values used by _rotation range from -180 to 180. You can use integers or floating point values.

The value of _rotation always stays between -180 and 180, no matter what you set it to. For instance, if you set it to 179, it stays 179. However, if you set it to 181, it wraps around to -179.

To change this property, simply set it to a value. You can also use operators such as ++ and += to change the value. Here are some examples:

myClip._rotation = 90;
   myClip._rotation++;
   _root["myClip"]._rotation = 45;
   this._rotation += 0.5;

Share

Disclaimer

1) E-articles is not responsible for the information contained by this article as well for any and all copyright infringements by authors and writers. E-articles is a free information resource. If you suspect this article for any copyright infringement, please read the terms of service and contact us or use the "Report this article" button on this page to investigate the problem.
2) E-articles is not responsible for inaccuracies, falsehoods, or any other types of misinformation this article may contain and will not be liable for any loss or damage suffered by a user through the user's reliance on the information gained here.