Lingo Dictionary > L-N > moveVertex()

 

moveVertex()

Syntax

member(memberRef). MoveVertex(vertexIndex, xChange, yChange) 
moveVertex(member memberRef, vertexIndex, xChange, yChange)

Description

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.

Example

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:

member("Archie").moveVertex(1, 25, 10)

See also

addVertex, deleteVertex(), moveVertexHandle(), originMode, vertexList