60
Chapter 3: Creating Advanced Components in Flash MX 2004
Metadata tags
The following table describes the metadata tags that you can use in ActionScript class files:
The following sections describe the component metadata tags in more detail.
Bindable
Data binding connects components to each other. You achieve visual data binding through the
Bindings tab in the Component inspector. From there, you add, view, and remove bindings for a
component.
Although data binding works with any component, its main purpose is to connect user-interface
components to external data sources, such as web services and XML documents. These data
sources are available as components with properties, which you can bind to other component
properties. The Component inspector is the main tool used in Flash MX Professional 2004 to do
data binding.
Tag
Description
Bindable
Reveals a property in the Bindings tab of the Component inspector.
For more information, see
“Bindable” on page 60
.
ChangeEvent
Identifies events that cause data binding to occur. For more
information, see
“ChangeEvent” on page 61
.
Effect
Defines the valid property name for the tag’s effect. For more
information, see
“Effect” on page 62
.
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
Developing Flex Applications
.
Event
Describes the events that the component emits. For more
information, see
“Event” on page 62
.
IconFile
Identifies the filename for the icon that represents the component in
the Flash Components panel. For more information, see
“Adding an
icon” on page 71
.
Inspectable
Defines an attribute exposed to component users in the Component
inspector. Also limits allowable values of the property. For more
information, see
“Inspectable” on page 63
.
InspectableList
Identifies which subset of inspectable parameters should be listed in
the Flash MX 2004 Property inspector. If you don’t add an
InspectableList property to your component's class, all inspectable
parameters appear in the Property inspector. For more information,
see
“InspectableList” on page 64
.
NonCommittingChangeEvent Identifies an event as an interim trigger. For more information, see
“NonCommittingChangeEvent” on page 65
.
Style
Describes a style property allowed on the component. For more
information on using the
Style
metadata keyword, see
“Style”
on page 66
.