User Guide
458
To display different bitmaps with different palettes simultaneously, set paletteMapping to TRUE.
Director looks at each onscreen cast member’s reference palette (the palette assigned in its Cast
Member Properties dialog box) and, if it is different from the current palette, finds the closest
match for each pixel in the new palette.
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:
set the paletteMapping = TRUE
paletteRef
Syntax
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 (QTVR property)
Syntax
pan of sprite whichQTVRSprite
Description
QuickTime VR sprite property; the current pan of the QuickTime VR movie. The value is
in degrees.
This property can be tested and set.