MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 1076

Director scripting reference
Table of Contents

Advertisement

useTargetFrameRate
Usage
sprite(which3dSprite).useTargetFrameRate
Description
3D sprite property; determines whether the
If the
useTargetFrameRate
are reduced if necessary to achieve the specified frame rate.
Example
These statements set the
by setting the
useTargetFrameRate
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)
1076
Chapter 14: Properties
targetFrameRate
property is set to
TRUE
property of sprite 3 to 45 and enforce the frame rate
targetFrameRate
property of the sprite to
property of the sprite is enforced.
, the polygon count of the models in the sprite
:
TRUE

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