MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 136

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Property
falseDisabledIconEmphasized
trueUpIconEmphasized
trueOverIconEmphasized
trueDownIconEmphasized
trueDisabledIconEmphasized
The default value for all skin properties ending in "Skin" is
"Icon" properties is
border, whereas those with the "Icon" suffix provide a small icon.
In addition to the icon skins, the Button component also supports a standard
difference between the standard property and style property is that through the style property you
can set icons for the individual states, whereas with the standard property only one icon can be set
and it applies to all states. If a Button instance has both the
properties set, the instance may not behave as anticipated.
To see an interactive movie demonstrating when each skin is used, see Using Components Help.
Using ActionScript to draw Button skins
The default skins in both the Halo and Sample themes use the same skin element for all states and
draw the actual graphics through ActionScript. The Halo implementation uses an extension of
the RectBorder class and custom drawing API code to draw the states. The Sample
implementation uses the same skin and the same ActionScript class as the Button skin.
To create an ActionScript class to use as the skin and provide different states, the skin can read the
style property of the skin and
borderStyle
state. The following table shows the border style that is set for each skin:
Property
falseUpSkin
falseDownSkin
falseOverSkin
falseDisabled
trueUpSkin
trueDownSkin
trueOverSkin
trueDisabledSkin
136
Chapter 6: Components Dictionary
Description
The icon disabled state of an emphasized button.
The icon toggled state of an emphasized button.
The icon over-toggled state of an emphasized button.
The icon pressed-toggled state of an emphasized button.
The icon disabled-toggled state of an emphasized button.
. The properties with the "Skin" suffix provide a background and
undefined
Border style
falseup
falsedown
falserollover
falsedisabled
trueup
truedown
truerollover
truedisabled
ButtonSkin
property and icon style
icon
property of the parent to determine the
emphasized
, and the default for all
property. The
icon

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents