Metadata tags
49
Metadata tags
The following table describes the metadata tags that you can use in ActionScript class files:
Tag
Description
[ArrayElementType]
Defines the allowed data type of each element of an Array. For
more information, see
“ArrayElementType metadata tag”
on page 50
.
[Bindable]
Identifies a property that you can use as the source of a data
binding expression. For more information, see
“Bindable
metadata tag” on page 51
.
[DefaultProperty]
Defines the name of the default property of the component
when you use the component in an MXML file. For more
information, see
“DefaultProperty metadata tag” on page 55
.
[Effect]
Defines the MXML property name for the effect. For more
information, see
“Effect metadata tag” on page 55
.
[Embed]
Imports JPEG, GIF, PNG, SVG, and SWF files at compile time.
Also imports image assets from SWC files.
This is functionally equivalent to the MXML
@Embed
syntax, as
described in Chapter 30, “Embedding Assets,” in
Flex 2
Developer’s Guide
.
[Event]
Defines the MXML property for an event and the data type of
the event object that a component emits. For more information,
see
“Event metadata tag” on page 56
.
[IconFile]
Identifies the filename for the icon that represents the
component in the Insert bar of Adobe® Flex™ Builder™. For
more information, see
“IconFile metadata tag” on page 57
.
[Inspectable]
Defines an attribute exposed to component users in the
attribute hints and Tag inspector of Flex Builder. Also limits
allowable values of the property. For more information, see
“Inspectable metadata tag” on page 58
.
[InstanceType]
Specifies the allowed data type of a property of type
IDeferredInstance. For more information, see
“InstanceType
metadata tag” on page 60
.
[NonCommittingChangeEvent]
Identifies an event as an interim trigger. For more information,
see
“NonCommittingChangeEvent metadata tag” on page 60
.
[Style]
Defines the MXML property for a style property for the
component. For more information on using the
[Style]
metadata tag, see
“Style metadata tag” on page 61
.
Содержание FLEX 2 - CREATING AND EXTENDING COMPONENTS
Страница 1: ...Creating and Extending Flex 2 Components Adobe Flex 2...
Страница 6: ...6 Contents...
Страница 10: ...10 About Flex Documentation...
Страница 12: ......
Страница 24: ...24 Creating Flex Components...
Страница 74: ...74 Compiling Components...
Страница 76: ......
Страница 118: ...118 Creating Advanced MXML Components...
Страница 120: ......
Страница 182: ...182 Creating Advanced Visual Components in ActionScript...
Страница 194: ...194 Creating Custom Style Properties...
Страница 204: ...204 Creating Template Components...
Страница 206: ......
Страница 216: ...216 Creating Custom Formatters...
Страница 254: ...254 Index...