EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 239

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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 \"" + filename + "\" 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 lists 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 lists 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

Related product manuals