Color, Tempo, and Transitions
265
Controlling color palettes with Lingo
By using the
puppetPalette
command, you can change the current palette and specify how
quickly a new palette fades in. This command is useful when you want to change the palette to
suit changing conditions in the movie without entering a new frame. For example, you can
change the palette when you switch a cast member assigned to a sprite.
The new palette remains in effect until a new
puppetPalette
command is issued, a new palette is
set in the palette channel, or a new movie starts.
See
puppetPalette
in the Lingo Dictionary.
Solving color palette problems
When images in your movie appear with the wrong colors, you probably have the wrong color
palette active. Color palette problems occur only if you are using 8-bit bitmaps and you want
your movie to be displayed correctly on 256-color systems (8-bit bitmaps always appear correctly
on computers that are set to display thousands or millions of colors).
Eight-bit bitmaps don’t store information about actual colors; they identify colors by referring to
positions in the current color palette. When saving an 8-bit bitmap, a graphics program creates a
palette with the colors required for that particular image. This palette is saved with the file and
must be active when the bitmap appears in a Director movie for the bitmap to appear with the
proper colors. Only one palette can be active. Whenever it’s necessary to display more than one 8-
bit bitmap on the screen at one time, as is often the case in Director movies, all the images must
refer to the same palette.
To solve color palette problems, follow these guidelines:
•
To avoid color problems in movies for the web, map all 8-bit bitmaps in your movie to the
Web216 color palette that is built in to Director. This is essentially the same palette used by
Netscape Navigator and Microsoft Internet Explorer.
•
Do not attempt to change palettes while a movie is playing in the browser. The browser, not
the Director movie, controls the palette. Browsers ignore all palette channel settings.
•
Make sure all the 8-bit images that are on the Stage at the same time refer to the same palette.
•
If bitmaps are not dithering or remapping to the current palette, make sure the Remap Palettes
If Needed option on the Movie tab of the Property inspector is selected. See “Setting Stage and
movie properties” on page 27.
•
Make sure there are no palette changes in the palette channel of which you are unaware. For
example, when a cast member you are placing on the Stage has a palette different from the
currently active palette, Director adds the new palette to the palette channel. If you don’t
realize that this has happened, you might find the palette changing unexpectedly when the
movie plays.
•
For disk-based movies, simplify your work and avoid frequent palette changes by mapping all
the images in your movie to as few palettes as possible.
•
Remap existing cast members to a new color palette using the Modify > Transform Bitmap
command.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...