MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 278

Director scripting reference
Table of Contents

Advertisement

pos1 = vector(100, 0, 0)
pos2 = vector(0, 100, 0)
put pos1.cross(pos2)
-- vector( 0.0000, 0.0000, 1.00000e4 )
See also
crossProduct(),
crossProduct()
Usage
vector1.crossProduct(vector2)
Description
3D vector method; returns a vector which is perpendicular to both
Example
In this example,
returned by
pos1.crossProduct(pos2)
perpendicular to both pos1 and pos2.
pos1 = vector(100, 0, 0)
pos2 = vector(0, 100, 0)
put pos1.crossProduct(pos2)
-- vector( 0.0000, 0.0000, 1.00000e4 )
See also
perpendicularTo,
cursor()
Usage
-- Lingo syntax
_player.cursor(intCursorNum)
_player.cursor(cursorMemNum, maskMemNum)
_player.cursor(cursorMemRef)
// JavaScript syntax
_player.cursor(intCursorNum);
_player.cursor(cursorMemNum, maskMemNum);
_player.cursor(cursorMemRef);
Description
Player method; changes the cast member or built-in cursor that is used for a cursor and stays in
effect until you turn it off by setting the cursor to 0.
Use the syntax
cast member to use as a cursor and its optional mask. The cursor's hot spot is the registration
point of the cast member.
The cast member that you specify must be a 1-bit cast member. If the cast member is larger
than 16 by 16 pixels, Director crops it to a 16-by-16-pixel square, starting in the upper left
corner of the image. The cursor's hot spot is still the registration point of the cast member.
278
Chapter 12: Methods
perpendicularTo
is a vector on the x axis and
pos1
cross
_player.cursor(cursorMemNum, maskMemNum)
is a vector on the y axis. The value
pos2
is
vector( 0.0000, 0.0000, 1.00000e4 )
and
vector1
vector2
, which is
to specify the number of a
.

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

This manual is also suitable for:

Director mx 2004

Table of Contents