User Guide
846 Chapter 14: Properties
magnitude
Usage
whichVector.magnitude
Description
3D property; returns the magnitude of a vector. The value is a floating-point number. The
magnitude is the length of a vector and is always greater than or equal to0.0. (
vector (0, 0, 0)
equals 0.)
Example
This statement shows that the magnitude of MyVec1 is 100.0000 and the magnitude of MyVec2
is 141.4214.
MyVec1 = vector(100, 0, 0)
put MyVec1.magnitude
-- 100.0000
MyVec2 = vector(100, 100, 0)
put MyVec2.magnitude
-- 141.4214
See also
length (3D), identity()
margin
Usage
-- Lingo syntax
memberObjRef.margin
// JavaScript syntax
memberObjRef.margin;
Description
Field cast member property; determines the size, in pixels, of the margin inside the field box.
Example
The following statement sets the margin inside the box for the field cast member Today’s News to
15 pixels:
--Lingo syntax
member("Today’s News").margin = 15
// JavaScript syntax
member("Today’s News").margin = 15;