Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Rectangle (flash.geom.Rectangle) > 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
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
x (Rectangle.x property), y (Rectangle.y property), width (Rectangle.width property)
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00002083.html