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[myLin 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.
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...