User Guide
356 Chapter 12: Methods
hilite (command)
Usage
fieldChunkExpression.hilite()
hilite fieldChunkExpression
Description
Command; highlights (selects) in the field sprite the specified chunk, which can be any chunk
that Lingo lets you define, such as a character, word, or line. On the Macintosh, the highlight
color is set in the Color control panel.
Parameters
None.
Example
This statement highlights the fourth word in the field cast member Comments, which contains
the string Thought for the Day:
member("Comments").word[4].hilite()
This statement causes highlighted text within the sprite for field myRecipes to be displayed
without highlighting:
myLineCount = member("myRecipes").line.count
member("myRecipes").line[myLineCount + 1].hilite()
See also
char...of, item...of, line...of, word...of, delete(), mouseChar, mouseLine,
mouseWord, field, selection() (function), selEnd, selStart
hitTest()
Usage
-- Lingo syntax
spriteObjRef.hitTest(point)
// JavaScript syntax
spriteObjRef.hitTest(point);
Description
Function; indicates which part of a Flash movie is directly over a specific Director Stage location.
The Director Stage location is expressed as a Director point value: for example, point(100,50).
The
hitTest function returns these values:
• #background—The specified Stage location falls within the background of the Flash movie
sprite.
• #normal—The specified Stage location falls within a filled object.
• #button—The specified Stage location falls within the active area of a button.
• #editText—The specified Stage location falls within a Flash editable text field.
Parameters
point Required. Specifies the point to test.