You can script in Lingo or JavaScript syntax to scroll text and determine the location of specific text within the text box for text and field cast members. For example, this statement sets the scrollTop value for the text cast member called Discussion to 0, which makes its first line appear at the top of its scrolling field:
member("Discussion").scrollTop = 0
This procedure can be useful for making a scrolling field automatically scroll back to the top. For more information about the following methods and properties, see the Scripting Reference topics in the Director Help Panel.
se the scrollByPage method.
se the scrollByLine method.
et the lineCount cast member property. (This property doesn't apply to text cast members.)
se the linePosToLocV() method.
se the locVToLinePos() method. (This measures the distance from the top of the cast member, not what appears on the Stage.)
se the charPosToLoc() method.
se the locToCharPos() method.
test or set the scrollTop cast member property.