height (Rectangle.height property)

public height : Number

The height of the rectangle in pixels. Changing the height value of a Rectangle object has no effect on the x, y, and width properties.



Availability: ActionScript 1.0; Flash Player 8

Example

The following example creates a Rectangle object and changes its height property from 10 to 20. Notice that rect.bottom is also changed.

import flash.geom.Rectangle;

var rect:Rectangle = new Rectangle(5, 5, 10, 10);
trace(rect.height); // 10
trace(rect.bottom); // 15

rect.height = 20;
trace(rect.height); // 20
trace(rect.bottom); // 25

See also

x (Rectangle.x property), y (Rectangle.y property), width (Rectangle.width property)


Flash CS3