984
Chapter 14: Properties
Example
The following statement sets the selection displayed by the sprite of text member myAnswer so
that characters 6 through 10 are highlighted:
member("myAnswer").selection = [6, 10]
See also
color()
,
selStart
,
selEnd
selEnd
Usage
-- Lingo syntax
selEnd
// JavaScript syntax
selEnd;
Description
Cast member property; specifies the last character of a selection. It is used with
selStart
to identify a selection in the current editable field, counting from the beginning character.
This property can be tested and set. The default value is 0.
Example
These statements select “cde” from the field “abcdefg”:
-- Lingo syntax
selStart = 3
selEnd = 5
// JavaScript syntax
selStart = 2;
selEnd = 4;
This statement makes a selection 20 characters long:
-- Lingo syntax
selEnd = se 20
// JavaScript syntax
selEnd = se 20;
See also
editable
,
hilite (command)
,
selection() (function)
,
selStart
,
text
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
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...