MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 408

Director scripting reference
Table of Contents

Advertisement

Parameters
Required. Specifies the index position of the vertex to move.
vertexIndex
Required. Specifies the amount to move the vertex horizontally.
xChange
Required. Specifies the amount to move the vertex vertically.
yChange
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:
-- Lingo syntax
member("Archie").moveVertex(1, 25, 10)
// JavaScript syntax
member("Archie").moveVertex(1, 25, 10);
See also
addVertex(), deleteVertex(), moveVertexHandle(), originMode,
moveVertexHandle()
Usage
-- Lingo syntax
memberObjRef.moveVertexHandle(vertexIndex, handleIndex, xChange, yChange)
// JavaScript syntax
memberObjRef.moveVertexHandle(vertexIndex, handleIndex, xChange, yChange);
Description
Function; moves the vertex handle 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 handle. The location of the vertex handle is relative to the vertex point it controls.
Changing the location of a control handle affects the shape in the same way as dragging the vertex
in the editor.
Parameters
Required. Specifies the index position of the vertex that contains the handle
vertexIndex
to move.
Required. Specifies the index position of the handle to move.
handleIndex
Required. Specifies the amount to move the vertex handle horizontally.
xChange
Required. Specifies the amount to move the vertex handle vertically.
yChange
Example
This statement shifts the first control handle of the second vertex point in the vector shape Archie
15 pixels to the right and 5 pixels up:
-- Lingo syntax
moveVertexHandle(member("Archie"), 2, 1, 15, -5)
// JavaScript syntax
moveVertexHandle(member("Archie"), 2, 1, 15, -5)
408
Chapter 12: Methods
vertexList

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents