446
Chapter 12: Methods
// JavaScript syntax
sprite(2).pause();
member("Real").pause();
See also
mediaStatus (RealMedia, Windows Media)
,
play() (RealMedia, SWA, Windows
Media)
,
seek()
,
stop() (RealMedia, SWA, Windows Media)
perpendicularTo
Usage
vector1
.perpendicularTo(
vector2
)
Description
3D vector command; returns a vector perpendicular to both the original vector and a second
vector. This command is equivalent to the vector
crossProduct
command.
Parameters
vector2
Required. Specifies the second vector.
Example
In this example, pos1 is a vector on the x axis and pos2 is a vector on the y axis. The value
returned by
pos1.perpendicularTo(pos2)
is
vector( 0.0000, 0.0000, 1.00000e4 )
. The
last two lines of the example show the vector which is perpendicular to both pos1 and pos2.
pos1 = vector(100, 0, 0)
pos2 = vector(0, 100, 0)
put pos1.perpendicularTo(pos2)
-- vector( 0.0000, 0.0000, 1.00000e4 )
See also
crossProduct()
,
cross
pictureP()
Usage
-- Lingo syntax
pictureP(
pictureValue
)
// JavaScript syntax
pictureP(
pictureValue
);
Description
Function; reports whether the state of the
picture
member property for the specified cast
member is
TRUE
(1) or
FALSE
(0).
Because
pictureP
doesn’t directly check whether a picture is associated with a cast member, you
must test for a picture by checking the cast member’s
picture
member property.
Parameters
pictureValue
Required. Specifies a reference to the picture of a cast member.
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...