User Guide
345
Description
Function; returns a specific line’s distance, in pixels, from the top edge of the field cast member.
Example
This statement measures the distance, in pixels, from the second line of the field cast member
Today’s News to the top of the field cast member and assigns the result to the variable
startOfString:
startOfString = member("Today’s News").linePosToLocV(2)
lineSize
Syntax
member(whichCastMember).lineSize
the lineSize of member whichCastMember
sprite whichSprite.lineSize
the lineSize of sprite whichSprite
Description
Shape cast member property; determines the thickness, in pixels, of the border of the specified
shape cast member displayed on the Stage. For nonrectangular shapes, the border is the edge of
the shape, not its bounding rectangle.
The
lineSize setting of the sprite takes precedence over the lineSize setting of the member. If
Lingo changes the member’s
lineSize setting while a sprite is on the Stage, the sprite’s lineSize
setting remains in effect until the sprite is finished.
For the value set by Lingo to last beyond the current sprite, the sprite must be a puppet.
This property can be tested and set.
Examples
This statement sets the thickness of the shape cast member Answer Box to 5 pixels:
member("Answer Box").lineSize = 5
This statement displays the thickness of the border of sprite 4:
thickness = sprite(4).lineSize
This statement sets the thickness of the border of sprite 4 to 3 pixels:
sprite(4).lineSize = 3
linkAs()
Syntax
castMember.linkAs()
Description
Script cast member function; opens a save dialog box, allowing you to save the contents of the
script to an external file. The script cast member is then linked to that file.
Linked scripts are imported into the movie when you save it as a projector, Shockwave movie, or
Java movie. This differs from other linked media, which remains external to the movie unless you
explicitly import it.