Property
skinCloseDisabled
skinCloseOver
The following example demonstrates how to create a new movie clip symbol to use as the title
background.
To set the title of an Window component to a custom movie clip symbol:
Create a new FLA file.
1.
Create a new symbol by selecting Insert > New Symbol.
2.
Set the name to
3.
If the advanced view is not displayed, click the Advanced button.
4.
Select Export for ActionScript.
5.
The identifier will be automatically filled out with
6.
Set the AS 2.0 class to
7.
SkinElement is a simple class that can be used for all skin elements that don't provide their own
ActionScript impelmentation. It provides movement and sizing functionality required by the
version 2 component framework.
Ensure that Export in First Frame is already selected, and click OK.
8.
Open the new symbol for editing.
9.
Use the drawing tools to create a box with a red fill and black line.
10.
Set the border style to hairline.
11.
Set the box, including the border, so that it is positioned at (0,0) and has a width of 100 and
12.
height of 22.
The Window component will set the proper width of the skin as needed but it will use the
existing height as the height of the title.
Click the Back button to return to the main Timeline.
13.
Drag the Window component to the Stage.
14.
Select Control > Test Movie.
15.
Window class
Inheritance
MovieClip >
ActionScript Class Name
The properties of the Window class let you do the following at runtime: set the title caption, add
a close button, and set the display content. Setting a property of the Window class with
ActionScript overrides the parameter of the same name set in the Property inspector or
Component Inspector panel.
882
Chapter 6: Components Dictionary
Description
The close button in its disabled state. The default value is
CloseButtonDisabled
The close button in its over state. The default value is
CloseButtonOver
.
TitleBackground
mx.skins.SkinElement
UIObject class
mx.containers.Window
.
.
TitleBackground
.
>
UIComponent class
.
> View > ScrollView > Window
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?