Using Director > Navigation and User Interaction > Checking which text is under the pointer with Lingo

 

Checking which text is under the pointer with Lingo

Lingo can detect which text component in a text or field cast member is currently under the mouse pointer.

Use Lingo that applies to text and field cast members as follows:

To detect which character in a text or field cast member is under the pointer, use the pointToChar() function. See pointToChar().

To detect which item in a text or field cast member is under the pointer, use the pointToItem() function. See pointToItem().

To detect which word in a text or field cast member is under the pointer, use the pointToWord() function. See pointToWord().

To detect which paragraph in a text or field cast member is under the pointer, use the pointToParagraph() function. See pointToParagraph().

Use Lingo that applies only to text cast members as follows:

To detect whether a specific point is in a hyperlink within a text cast member and is under the pointer, use the pointInHyperlink() function. See pointInHyperlink().

Use Lingo that applies only to field cast members as follows:

To detect which line in a field is under the pointer, use the mouseLine function. See mouseLine.

To detect which word in a field is under the pointer, use the mouseWord function. See mouseWord.