420
Chapter 12: Methods
newCurve()
Usage
-- Lingo syntax
memberObjRef
.newCurve(
positionInVertexList
)
// JavaScript syntax
memberObjRef
.newCurve(
positionInVertexList
);
Description
Function; adds a
#newCurve
symbol to the
vertexList
of
vectorCastMember
, which adds a
new shape to the vector shape. You can break apart an existing shape by calling
newCurve()
with
a position in the middle of a series of vertices.
Parameters
positionInVertexList
Required. Specifies the position in the
vertexList
at which the
#newCurve
symbol is added.
Example
These statements add a new curve to cast member 2 at the third position in the cast member’s
vertexList. The second line of the example replaces the contents of curve 2 with the contents of
curve 3.
-- Lingo syntax
member(2).newCurve(3)
member(2).curve[2] = member(2).curve[3]
// JavaScript syntax
member(2).newCurve(3);
member(2).curve[2] = member(2).curve[3];
See also
curve
,
vertexList
newGroup
Usage
member(
whichCastmember
).newGroup(
newGroupName
)
Description
3D command; creates a new group and adds it to the group palette.
Parameters
newGroupName
Required. Specifies the name of the new group. The name of the new group must
be unique within the group palette.
Example
This statement creates a group called gbGroup2 within the cast member Scene, and a reference to
it is stored in the variable ng:
ng = member("Scene").newGroup("gbGroup2")
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...