User Guide

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.