03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Integer<br />

value<br />

13 "overlay" Adjusts the color of each bitmap<br />

based on the darkness of the<br />

background. If the background is<br />

lighter than 50% gray, the button <strong>and</strong><br />

background colors are screened,<br />

which results in a lighter color. If the<br />

background is darker than 50% gray,<br />

the colors are multiplied, which results<br />

in a darker color. This setting is<br />

commonly used for shading effects.<br />

14 "hardlight" Adjusts the color of each bitmap<br />

based on the darkness of the button. If<br />

the button is lighter than 50% gray,<br />

the button <strong>and</strong> background colors are<br />

screened, which results in a lighter<br />

color. If the button is darker than 50%<br />

gray, the colors are multiplied, which<br />

results in a darker color. This setting is<br />

commonly used for shading effects.<br />

If you attempt to set the blendMode property to any other value, Flash Player sets it to<br />

"normal".<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 8<br />

Example<br />

In the following example you can see that if you set the property to an integer, Flash Player<br />

converts the value to the corresponding string version:<br />

my_button.blendMode = 8;<br />

trace (my_button.blendMode) // add<br />

For a related example, see the description of the blendMode property of the MovieClip class.<br />

See also<br />

blendMode (MovieClip.blendMode property)<br />

cacheAsBitmap (Button.cacheAsBitmap property)<br />

public cacheAsBitmap : Boolean<br />

If set to true, Flash Player caches an internal bitmap representation of the button. This can<br />

increase performance for buttons that contain complex vector content.<br />

360 <strong>ActionScript</strong> classes<br />

String value Illustration Description

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!