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,
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
function returns these values:
hitTest
•
#background
sprite.
•
—The specified Stage location falls within a filled object.
#normal
•
—The specified Stage location falls within the active area of a button.
#button
•
—The specified Stage location falls within a Flash editable text field.
#editText
Parameters
Required. Specifies the point to test.
point
356
Chapter 12: Methods
selection()
(function), selEnd,
—The specified Stage location falls within the background of the Flash movie
selStart
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers