version
225
sprite...within
Usage
-- Lingo syntax
sprite(
sprite1
).within(
sprite2
)
sprite
sprite1
within
sprite2
Description
Keyword; operator that compares the position of two sprites and determines whether the quad of
sprite1
is entirely inside the quad of
sprite2
(
TRUE
) or not (
FALSE
).
If both sprites have matte ink, their actual outlines, not the quads, are used. A sprite’s outline is
defined by the nonwhite pixels that make up its border.
This is a comparison operator with a precedence level of 5.
Note:
The dot operator is required whenever sprite1 is not a simple expression—that is, one that
contains a math operation.
Example
This statement checks whether two sprites intersect and calls the handler
doInside
if they do:
if sprite(3).within(2) then doInside
See also
sprite...intersects
,
quad
version
Usage
-- Lingo syntax
_player.productVersion
Description
Keyword; system variable that contains the version string for Director. The same string appears in
the Macintosh Finder’s Info window.
Example
This statement displays the version of Director in the Message window:
put(_player.productVersion)
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...