Button._rotation Property

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
Button._rotation Property Flash 6

rotation, in degrees, of a button read/write
theButton._rotation

Description

The floating-point _rotation property specifies the number of degrees theButton is rotated about its registration point. Both author-time and runtime adjustments are reflected in _rotation. See MovieClip._rotation for details on various positive and negative values for rotation, including values that are out of range.

Example

The following code rotates a button when the button is clicked:

fun_btn.onRelease = function () {   this._rotation += 10; }

See Also

Button.onRelease( ), MovieClip._rotation



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

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