Lingo Dictionary > L-N > locVToLinePos()

 

locVToLinePos()

Syntax

member(whichCastMember). locVToLinePos(locV ) 
locVToLinePos(member whichCastMember, locV)

Description

Function; returns the number of the line of characters that appears at the vertical position specified by locV. The locV value is the number of pixels from the top of the field cast member, not the part of the field cast member that currently appears on the Stage.

Example

This statement determines which line of characters appears 150 pixels from the top of the field cast member Today's News and assigns the result to the variable pageBreak:

pageBreak = member("Today's News").locVToLinePos(150)