238
Chapter 12: Methods
When using the final two optional parameters, you can specify the location of the control handles
for the vertex. The control handle location is offset relative to the vertex, so if no location is
specified, it will be located at 0 horizontal offset and 0 vertical offset.
Parameters
indexToAddAt
Required. An integer that specifies the index at which the member is added.
pointToAddVertex
Required. A point that specifies the position at which the member is added.
horizControlLocH
Optional. An integer that specifies the location of the horizontal portion of
the horizontal control handle.
horizControlLocV
Optional. An integer that specifies the location of the vertical portion of the
horizontal control handle.
vertControlLocH
Optional. An integer that specifies the location of the horizontal portion of
the vertical control handle.
vertControlLocV
Optional. An integer that specifies the location of the vertical portion of the
vertical control handle.
Example
This line adds a vertex point in the vector shape Archie between the two existing vertex points, at
the position 25 horizontal and 15 vertical:
-- Lingo syntax
member("Archie").addVertex(2, point(25, 15))
// JavaScript syntax
member("Archie").addVertex(2, point(25, 15));
See also
vertexList
,
moveVertex()
,
deleteVertex()
,
originMode
alert()
Usage
-- Lingo syntax
_player.alert(
displayString
)
// JavaScript syntax
_player.alert(
displayString
);
Description
Player method; causes a system beep and displays an alert dialog box containing a specified string.
The alert message must be a string. If you want to include a number variable in an alert, convert
the variable to a string before passing it to
alert()
.
Parameters
displayString
Required. A string that represents the text displayed in the alert dialog box. The
string can contain up to 255 characters.
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...