User Guide

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.