constraint
705
compressed
Usage
member(
whichCastmember
).texture(
whichTexture
).compressed
Description
3D texture property; indicates whether the source cast member of the texture is compressed
(
TRUE
) or not (
FALSE
). The value of the
compressed
property changes automatically from
TRUE
to
FALSE
when the texture is needed for rendering. It can be set to
FALSE
to decompress the
texture at an earlier time. It can be set to
TRUE
to release the decompressed representation from
memory. Cast members used for textures will not be compressed if this value is
TRUE
(apart from
the standard compression used for bitmap cast members when a Director movie is saved). The
default value for this property is
TRUE
.
Example
This statement sets the
compressed
property of the texture Plutomap to
TRUE
.
member("scene").texture("Plutomap").compressed = TRUE
See also
texture
constraint
Usage
-- Lingo syntax
spriteObjRef
.constraint
// JavaScript syntax
spriteObjRef
.constraint;
Description
Sprite property; determines whether the registration point of a sprite is constrained to the
bounding rectangle of another sprite (1 or
TRUE
) or not (0 or
FALSE
, default). Read/write.
The
constraint
property is useful for constraining a moveable sprite to the bounding rectangle
of another sprite to simulate a track for a slider control or to restrict where on the screen a user
can drag an object in a game.
The
constraint
property affects moveable sprites and the
locH
and
locV
properties. The
constraint point of a moveable sprite cannot be moved outside the bounding rectangle of the
constraining sprite. (The constraint point for a bitmap sprite is the registration point. The
constraint point for a shape sprite is its top left corner.) When a sprite has a constraint set, the
constraint limits override any
locH
and
locV
property settings.
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...