Move Clip Rotation

I l @ ve RuBoard

Another 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; 
I l @ ve RuBoard


Sams Teach Yourself Flash MX ActionScript in 24 Hours
Sams Teach Yourself Flash MX ActionScript in 24 Hours
ISBN: 0672323850
EAN: 2147483647
Year: 2002
Pages: 272

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net