If you attempt to set the
.
"normal"
Availability: ActionScript 1.0; Flash Player 8
Example
In the following example you can see that if you set the property to an integer, Flash Player
converts the value to the corresponding string version:
my_button.blendMode = 8;
trace (my_button.blendMode) // add
For a related example, see the description of the
See also
blendMode (MovieClip.blendMode property)
cacheAsBitmap (Button.cacheAsBitmap property)
public cacheAsBitmap : Boolean
If set to
, Flash Player caches an internal bitmap representation of the button. This can
true
increase performance for buttons that contain complex vector content.
For a button that has
for each of the four button states.
All vector data for a button that has a cached bitmap is drawn to the bitmap instead of the
main stage. The bitmap is then copied to the main stage as unstretched, unrotated pixels
snapped to the nearest pixel boundaries. Pixels are mapped one to one with the parent object.
If the bounds of the bitmap change, the bitmap is recreated instead of being stretched.
No internal bitmap is created unless the
After you set a button's
however, the button performs pixel snapping automatically. The animation speed can be
significantly faster depending on the complexity of the vector content.
The
cacheAsBitmap
button (when its
filter
is reported as
cacheAsBitmap
you clear all filters for a button, the
property to any other value, Flash Player sets it to
blendMode
set to
cacheAsBitmap
cacheAsBitmap
property to
cacheAsBitmap
property is automatically set to
array is not empty), and if a button has a filter applied to it,
for that button, even if you set the property to
true
cacheAsBitmap
property of the MovieClip class.
blendMode
, Flash Player stores a bitmap representation
true
property is set to
, the rendering does not change;
true
whenever you apply a filter to a
true
setting changes to what it was last set to.
.
true
. If
false
Button
353
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?