Window.titlestyledeclaration - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Window.titleStyleDeclaration

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
windowInstance.titleStyleDeclaration
Description
Property; a string indicating the style declaration that formats the title bar of a window. The
default value is
, which indicates bold, white text.
undefined
Example
The following example creates a CSS style declaration to make text 14 points in size, italicized
and underlined. It uses the
property to apply that style to the title
titleStyleDeclaration
of the pop-up window that it creates. You drag a Window component from the Components
panel to the current document's library, and then add the following code to Frame 1.
/**
Requires:
- Window component in library
*/
import mx.styles.CSSStyleDeclaration
import mx.managers.PopUpManager
import mx.containers.Window
// Create a new CSSStyleDeclaration named TitleStyles
// and list it with the global styles list.
_global.styles.TitleStyles = new CSSStyleDeclaration();
// Customize styles.
_global.styles.TitleStyles.fontStyle = "italic";
_global.styles.TitleStyles.textDecoration = "underline";
_global.styles.TitleStyles.color = 0xff0000;
_global.styles.TitleStyles.fontSize = 14;
// Create window.
var my_win:MovieClip = PopUpManager.createPopUp(this, Window, true,
{closeButton:true, titleStyleDeclaration:"TitleStyles"});
Window.titleStyleDeclaration
1487

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents