Example
This statement returns the height of the visible portion of the field cast member Today's News:
--Lingo syntax
trace(member("Today's News").pageHeight)
// JavaScript syntax
trace(member("Today's News").pageHeight);
palette
Usage
-- Lingo syntax
memberObjRef.palette
// JavaScript syntax
memberObjRef.palette;
Description
Cast member property; for bitmap cast members only, determines which palette is associated with
the cast member specified by
This property can be tested and set.
Example
This statement displays the palette assigned to the cast member Leaves in the Message window:
-- Lingo syntax
put(member("Leaves").palette)
// JavaScript syntax
put(member("Leaves").palette);
paletteMapping
Usage
-- Lingo syntax
_movie.paletteMapping
// JavaScript syntax
_movie.paletteMapping;
Description
Movie property; determines whether the movie remaps (
default) palettes for cast members whose palettes are different from the current movie palette.
Read/write.
The effect of this property is similar to that of the Remap Palettes When Needed check box in the
Movie Properties dialog box.
To display different bitmaps with different palettes simultaneously, set
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.
.
whichCastMember
) or does not remap (
TRUE
paletteMapping
paletteMapping
FALSE,
to
.
TRUE
909
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