MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 910

Director scripting reference
Table of Contents

Advertisement

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 (
that are cast members are treated as cast member references. This behavior differs from that of the
member property, which returns a positive number for cast palettes and negative
palette
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.
910
Chapter 14: Properties
,
#systemMac
#rainbow
, and so on). Palettes

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents