User Guide
343
lineCount
Syntax
member(whichCastMember).lineCount
the lineCount of member whichCastMember
Description
Cast member property; indicates the number of lines that appear in the field cast member on the
Stage according to the way the string wraps, not the number of carriage returns in the string.
Example
This statement determines how many lines the field cast member Today’s News has when it
appears on the Stage and assigns the value to the variable numberOfLines:
numberOfLines = member("Today’s News").lineCount
lineDirection
Syntax
member(whichCastMember).lineDirection
Description
Shape member property; this property contains a 0 or 1 indicating the slope of the line drawn.
If the line is inclined from left to right, the property is set to 1; and if it is declined from left to
right, the property is set to 0.
This property can be tested and set.
Example
This handler toggles the slope of the line in cast member “theLine”, producing a see-saw effect:
on seeSaw
member("theLine").lineDirection = \
not member("theLine").lineDirection
end
lineHeight() (function)
Syntax
member(whichCastMember).lineHeight(lineNumber)
lineHeight(member whichCastMember, lineNumber)
Description
Function; returns the height, in pixels, of a specific line in the specified field cast member.
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:
headline = member("Today’s News").lineHeight(1)