Using Director > Vector Shapes and Bitmaps > Controlling vector shapes with Lingo

 

Controlling vector shapes with Lingo

You can use Lingo to modify a vector shape by setting properties and using commands and functions related to the shape's vertices.

To display a list that contains the location of each vertex and control handle in a vector shape, test the vertexList property. See vertexList.

To access a vertex directly, use the vertex chunk expression. See vertex.

To add or delete a vertex, use the addVertex() or deleteVertex() command. See addVertex and deleteVertex().

To move a vertex or a vertex handle, use the moveVertex() or moveVertexHandle() command. See moveVertex() and moveVertexHandle().

To display the vertex list for a vector shape, test the curve property. See curve.

To add a new shape to the vector shape, use the newCurve() command. See newCurve().

To display or specify the registration point for the vector shape's cast member, test or set the regPointVertex property. See regPointVertex.

To display or specify the point around which a vector shape scales and rotates, test or set the originMode property. See originMode.