MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 134

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

Advertisement

Style
embedFonts
fontFamily
fontSize
fontStyle
fontWeight
textDecoration
Using skins with the Button component
The Button component includes 32 different skins that can be customized to correspond to the
border and icon in 16 different states. To skin the Button component while authoring, create new
movie clip symbols with the desired graphics and set the symbol linkage identifiers using
ActionScript. (See
The default implementation of the Button skins provided with both the Halo and Sample themes
uses the ActionScript drawing API to draw the button states, and uses a single movie clip symbol
associated with one ActionScript class to provide all skins for the Button component.
The Button component has many skins because a button has so many states, and a border and
icon for each state. The state of a Button instance is controlled by four properties and user
interaction. The properties that affect skins include the following:
Property
emphasized
enabled
toggle
selected
134
Chapter 6: Components Dictionary
Theme Description
Both
A Boolean value that indicates whether the font specified in
fontFamily
true
embedded font will not be used. If this style is set to
fontFamily
displayed. The default value is
Both
The font name for text. The default value is
Both
The point size for the font. The default value is 10.
Both
The font style: either
is
"normal"
Both
The font weight: either
is
"none"
in place of
calls to
Both
The text decoration: either
value is
"Using ActionScript to draw Button skins" on page
Description
Provides two different looks for Button instances and is typically used
to highlight one button, such as the default button in a form.
Shows whether or not the button is allowing user interaction.
Toggle buttons provide a selected and unselected value and use
different skins to demonstate the current value. For a Button instance
whose
toggle
the
property is
toggle
When the
toggle
Button is selected (
the value and by default are the only way this value is depicted on
screen.
is an embedded font. This style must be set to
if
refers to an embedded font. Otherwise, the
fontFamily
does not refer to an embedded font, no text will be
"normal"
.
"none"
. All components can also accept the value
during a
"none"
setStyle()
will return
getStyle()
"none"
.
"none"
property is set to
false
, the skin depends on the
true
property is set to
true
or
). Different skins are used to identify
true
false
.
false
.
"_sans"
or
. The default value
"italic"
or
. The default value
"bold"
call, but subsequent
.
"none"
or
. The default
"underline"
136.)
, the
skins are used. When
false
selected
, this property determines if the
and
true
"normal"
property.

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?

This manual is also suitable for:

Flash mx

Table of Contents