844
ActionScript classes
If you attempt to set the
blendMode
property to any other value, Flash Player sets it to
"normal"
.
However, if you set the property to an integer, Flash Player converts the value to the
corresponding string version:
this.createEmptyMovieClip("mclip", this.getNextHighestDepth());
mclip.blendMode = 8;
trace (mclip.blendMode) // add
Availability:
ActionScript 1.0; Flash Player 8
11
"alpha"
Applies the alpha value of each pixel of the
movie clip to the background. This requires
the "layer"
blendMode
setting to be applied
to a parent movie clip. For example, in the
illustration, the parent movie clip, which is a
white background, has
blendMode =
"layer"
.
12
"erase"
Erases the background based on the alpha
value of the movie clip. This requires the
"layer"
blendMode
to be applied to a parent
movie clip. For example, in the illustration,
the parent movie clip, which is a white
background, has
blendMode = "layer"
.
13
"overlay"
Adjusts the color of each bitmap based on
the darkness of the background. If the
background is lighter than 50% gray, the
movie clip and background colors are
screened, which results in a lighter color. If
the background is darker than 50% gray,
the colors are multiplied, which results in a
darker color. This setting is commonly used
for shading effects.
14
"hardlight"
Adjusts the color of each bitmap based on
the darkness of the movie clip. If the movie
clip is lighter than 50% gray, the movie clip
and background colors are screened,
which results in a lighter color. If the movie
clip is darker than 50% gray, the colors are
multiplied, which results in a darker color.
This setting is commonly used for shading
effects.
Integer value String value Illustration Description
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...