MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 946

Director scripting reference
Table of Contents

Advertisement

rect (Member)
Usage
-- Lingo syntax
memberObjRef.rect
// JavaScript syntax
memberObjRef.rect;
Description
Member property; specifies the left, top, right, and bottom coordinates, returned as a rectangle,
for the rectangle of any graphic cast member, such as a bitmap, shape, movie, or digital video.
Read-only for all cast members, read/write for field cast members only.
For a bitmap, the
from the upper left corner of the easel in the Paint window.
For an Xtra extension cast member, the
at (0,0).
Example
This statement displays the coordinates of bitmap cast member 20:
-- Lingo syntax
put(member(20).rect)
// JavaScript syntax
put(member(20).rect);
This statement sets the coordinates of bitmap cast member Banner:
-- Lingo syntax
member("Banner").rect = rect(100, 150, 300, 400)
// JavaScript syntax
member("Banner").rect = rect(100, 150, 300, 400);
See also
Member
rect (Sprite)
Usage
-- Lingo syntax
spriteObjRef.rect
// JavaScript syntax
spriteObjRef.rect;
Description
Sprite property; specifies the left, top, right, and bottom coordinates, as a rectangle, for the
rectangle of any graphic sprite such as a bitmap, shape, movie, or digital video. Read/write.
946
Chapter 14: Properties
property is measured from the upper left corner of the bitmap, instead of
rect
property is a rectangle whose upper left corner is
rect

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents