MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 881

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

Advertisement

Style
fontWeight
textAlign
textDecoration
textIndent
Text styles can be set on the Window component itself, or they can be set on the
_global.styles.windowStyles
style settings to propagate to child components through style inheritance.
The following example demonstrates how to italicize the title of a Window component without
having this setting propagate to child components.
import mx.containers.Window;
_global.styles.windowStyles.setStyle("fontStyle", "italic");
createClassObject(Window, "window", 1, {title: "A Window"});
Notice that this example sets the property before instantiating the window through
createClassObject()
created.
Using skins with the Window component
The Window component uses skins for its title background and close button, and a RectBorder
instance for the border. The Window skins are found in the Flash UI Components 2/Themes/
MMDefault/Window Assets folder in each of the theme files. For more information about
skinning, see
"About skinning components" on page
RectBorder class and using it to customize borders, see
The title background skin is always displayed. The height of the background is determined by the
skin graphics. The width of the skin is set by the Window component according to the Window
instance's size. The close skins are displayed when the
when a change state results from user interaction.
A Window component uses the following skin properties:
Property
skinTitleBackground
skinCloseUp
skinCloseDown
Theme Description
Both
The font weight: either
is
"none"
in place of
calls to
getStyle()
Both
The text alignment: either
default value is
Both
The text decoration: either
value is
"none"
Both
A number indicating the text indent. The default value is 0.
class style declaration. This has the advantage of not causing
. For the styles to take effect, they must be set before the window is
Description
The title bar. The default value is
The close button. The default value is
The close button it its down state. The default value is
CloseButtonDown
or
"none"
. All components can also accept the value
during a
"none"
setStyle()
will return
"none"
"left"
.
"left"
"none"
.
80. For more information about the
"RectBorder class" on page
closeButton
TitleBackground
.
. The default value
"bold"
"normal"
call, but subsequent
.
,
, or
. The
"right"
"center"
or
. The default
"underline"
647.
property is set to
true
.
.
CloseButtonUp
Window component
and
881

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents