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

Actionscript 2.0 language reference
Table of Contents

Advertisement

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
,
, and
properties.
x
width
height
The value of the
property is equal to the value of the
property.
top
y
Availability: ActionScript 1.0; Flash Player 8
Example
This example changes the value of the
property from 0 to 10. Notice that
also
top
rect.y
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)
1050 ActionScript classes

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF