sendAllSprites()
523
Parameters
direction
Required. A symbol (Lingo) or a string (JavaScript syntax) that specifies the direction
to move from the current button position. Valid values are
left
or
right
.
Example
This statement specifies the button to the left of the current button:
-- Lingo syntax
member(12).member.selectButtonRelative(#left)
// JavaScript syntax
member(12).member.selectButtonRelative("left");
See also
DVD
selection() (function)
Usage
the selection
Description
Function; returns a string containing the highlighted portion of the current editable field. This
function is useful for testing what a user has selected in a field.
The
selection
function only indicates which string of characters is selected; you cannot use
selection
to select a string of characters.
Parameters
None.
Example
This statement checks whether any characters are selected and, if none are, displays the alert
“Please select a word.”:
if the selection = EMPTY then alert "Please select a word."
See also
selStart
,
selEnd
sendAllSprites()
Usage
-- Lingo syntax
_movie.sendAllSprites(
stringEventMessage
{,
args
})
// JavaScript syntax
_movie.sendAllSprites(
stringEventMessage
{,
args
});
Description
Movie method; sends a designated message to all sprites, not just the sprite that was involved in
the event. As with any other message, the message is sent to every script attached to the sprite,
unless the
stopEvent()
method is used.
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...