User Guide
382 Chapter 12: Methods
Example
This example shows the two ways of referring to a light. The first line uses a string in parentheses
and the second line uses the a number in brackets. The string is the light’s name and the number
is the position of the light in the cast member’s list of lights.
thisLight = member("3D World").light("spot01")
thisLight = member("3D World").light[2]
See also
newLight, deleteLight
lineHeight()
Usage
-- Lingo syntax
memberObjRef.lineHeight(lineNumber)
// JavaScript syntax
memberObjRef.lineHeight(lineNumber);
Description
Function; returns the height, in pixels, of a specific line in a specified field cast member.
Parameters
lineNumber
Required. An integer that specifies the line to measure.
Example
This statement determines the height, in pixels, of the first line in the field cast member Today’s
News and assigns the result to the variable
headline:
--Lingo syntax
headline = member("Today's News").lineHeight(1)
// JavaScript syntax
var headline = member("Today's News").lineHeight(1);
linePosToLocV()
Usage
-- Lingo syntax
memberObjRef.linePosToLocV(lineNumber)
// JavaScript syntax
memberObjRef.linePosToLocV(lineNumber);
Description
Function; returns a specific line’s distance, in pixels, from the top edge of the field cast member.
Parameters
lineNumber
Required. An integer that specifies the line to measure.