Controlling scrolling text with Lingo or JavaScript syntax

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.