![MACROMEDIA DIRECTOR MX 2004 Reference Download Page 1076](http://html1.mh-extra.com/html/macromedia/director-mx-2004/director-mx-2004_reference_6875161076.webp)
1076
Chapter 14: Properties
useTargetFrameRate
Usage
sprite(
which3dSprite
).useTargetFrameRate
Description
3D sprite property; determines whether the
targetFrameRate
property of the sprite is enforced.
If the
useTargetFrameRate
property is set to
TRUE
, the polygon count of the models in the sprite
are reduced if necessary to achieve the specified frame rate.
Example
These statements set the
targetFrameRate
property of sprite 3 to 45 and enforce the frame rate
by setting the
useTargetFrameRate
property of the sprite to
TRUE
:
sprite(3).targetFrameRate = 45
sprite(3).useTargetFrameRate = TRUE
See also
targetFrameRate
vertex
Usage
-- Lingo syntax
memberObjRef
.vertex[
whichVertexPosition
]
// JavaScript syntax
memberObjRef
.vertex[
whichVertexPosition
];
Description
Chunk expression; enables direct access to parts of a vertex list of a vector shape cast member.
Use this chunk expression to avoid parsing different chunks of the vertex list. It’s possible to both
test and set values of the vertex list using this type of chunk expression.
Example
The following code shows how to determine the number of vertex points in a member:
-- Lingo syntax
put(member("Archie").vertex.count) -- 2
// JavaScript syntax
put(member("Archie").vertex.count); // 2
To obtain the second vertex for the member, you can use code like this:
-- Lingo syntax
put(member("Archie").vertex[2]) -- point(66.0000, -5.0000)
// JavaScript syntax
put(member("Archie").vertex[2]); // point(66.0000, -5.0000)
You can also set the value in a control handle:
-- Lingo syntax
member("Archie").vertex[2].handle1 = point(-63.0000, -16.0000)
Summary of Contents for DIRECTOR MX 2004
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...