EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Top (Rectangle.top Property)

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1050 ActionScript classes
top (Rectangle.top property)
public top : Number
The y coordinate of the top-left corner of the rectangle. Changing the value of the top
property of a Rectangle object has no effect on the
x, width, and height properties.
The value of the
top property is equal to the value of the y property.
Availability: ActionScript 1.0; Flash Player 8
Example
This example changes the value of the
top property from 0 to 10. Notice that rect.y also
changes.
import flash.geom.Rectangle;
var rect:Rectangle = new Rectangle();
trace(rect.top); // 0
trace(rect.y); // 0
rect.top = 10;
trace(rect.top); // 10
trace(rect.y); // 10
See also
x (Rectangle.x property), y (Rectangle.y property), width (Rectangle.width
property)
, height (Rectangle.height property)

Table of Contents

Related product manuals