910
Chapter 14: Properties
The colors of the nonmatching bitmap will be close to the original colors.
Remapping consumes processor time, and it’s usually better to adjust the bitmap’s palette
in advance.
Remapping can also produce undesirable results. If the palette changes in the middle of a sprite
span, the bitmap immediately remaps to the new palette and appears in the wrong colors.
However, if anything refreshes the screen—a transition or a sprite moving across the Stage—then
the affected rectangle on the screen appears in remapped colors.
Example
This statement tells the movie to remap the movie’s palette whenever necessary:
-- Lingo syntax
_movie.paletteMapping = TRUE
// JavaScript syntax
_movie.paletteMapping = true;
See also
Movie
paletteRef
Usage
member(
whichCastMember
). paletteRef
the paletteRef
Description
Bitmap cast member property; determines the palette associated with a bitmap cast member.
Built-in Director palettes are indicated by symbols (
#systemMac
,
#rainbow
, and so on). Palettes
that are cast members are treated as cast member references. This behavior differs from that of the
palette
member property, which returns a positive number for cast palettes and negative
numbers for built-in Director palettes.
This property can be tested and set.
Example
This statement assigns the Macintosh system palette to the bitmap cast member Shell:
member("Shell").paletteRef = #systemMac
pan
Usage
-- Lingo syntax
soundChannelObjRef
.pan
// JavaScript syntax
soundChannelObjRef
.pan;
Description
Sound Channel property; indicates the left/right balance of the sound playing in a sound channel.
Read/write.
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...