344
Chapter 12: Methods
Example
This statement identifies the value associated with the property
#c
in the property list Answers,
which consists of [#a:10, #b:12, #c:15, #d:22]:
getProp(Answers, #c)
The result is 15, because 15 is the value associated with
#c
.
See also
getOne()
getPropAt()
Usage
list.getPropAt(
index
)
getPropAt(
list
,
index
)
Description
Property list function; for property lists only, identifies the property name associated with a
specified position in a property list. If the specified item isn’t in the list, or if you use
getPropAt()
with a linear list, a script error occurs.
Parameters
index
Required. Specifies the index position of the property in the property list.
Example
This statement displays the second property in the given list:
put Answers.getPropAt(2)
-- #b
The result is 20, which is the value associated with
#b
.
getRendererServices()
Usage
getRendererServices()
getRendererServices().
whichGetRendererServicesProperty
Description
3D command; returns the
rendererServices
object. This object contains hardware information
and properties that affect all 3D sprites and cast members.
The
rendererServices
object has the following properties:
•
renderer
indicates the software rasterizer used to render all 3D sprites.
•
rendererDeviceList
returns a list of software rasterizers available on the user’s system.
Possible values include
#openGL
,
#directX5_2
,
#directX7_0
, and
#software
. The value of
renderer
must be one of these. This property can be tested but not set.
•
textureRenderFormat
indicates the pixel format used by the renderer. Possible values include
#rgba8888
,
#rgba8880
,
#rgba5650
,
#rgba5550
,
#rgba5551
, and
#rgba4444
. The four digits
in each symbol indicate how many bits are used for each red, green, blue, and alpha
component.
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...