User Guide

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.