EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 446

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 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...
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.