-- Lingo syntax memberObjRef.moveVertex(vertexIndex, xChange, yChange) // JavaScript syntax memberObjRef.moveVertex(vertexIndex, xChange, yChange);
Function; moves the vertex of a vector shape cast member to another location.
The horizontal and vertical coordinates for the move are relative to the current position of the vertex point. The location of the vertex point is relative to the origin of the vector shape member.
Changing the location of a vertex affects the shape in the same way as dragging the vertex in an editor.
vertexIndex Required. Specifies the index position of the vertex to move.
xChange Required. Specifies the amount to move the vertex horizontally.
yChange Required. Specifies the amount to move the vertex vertically.
This statement shifts the first vertex point in the vector shape Archie 25 pixels to the right and 10 pixels down from its current position:
-- Lingo syntax
member("Archie").moveVertex(1, 25, 10)
// JavaScript syntax
member("Archie").moveVertex(1, 25, 10);
addVertex(), deleteVertex(), moveVertexHandle(), originMode, vertexList