append
239
Example
The following statement produces an alert stating that there is no CD-ROM drive connected:
-- Lingo syntax
_player.alert("There is no CD-ROM drive connected.")
// JavaScript syntax
_player.alert("There is no CD-ROM drive connected.");
This statement produces an alert stating that a file was not found:
-- Lingo syntax
_player.alert("The file" && QUOTE & filename & QUOTE && "was not found.")
// JavaScript syntax
_player.alert("The file \"" + fi "\" was not found.");
See also
Player
append
Usage
list
.append(
value
)
append
list
,
value
Description
List command; for linear lists only, adds the specified value to the end of a linear list. This differs
from the
add
command, which adds a value to a sorted list according to the list’s order.
This command returns a script error when used with a property list.
Properties
value
Required. The value to add to the end of the linear list.
Example
This statement adds the value 2 at the end of the sorted list named bids, which contains [1, 3, 4],
even though this placement does not match the list’s sorted order:
set bids = [1, 3, 4]
bids.append(2)
The resulting value of bids is [1, 3, 4, 2].
See also
add (3D texture)
,
sort
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...