User Guide
150 Creating Components
In the following example, the Inspectable tags define the flavorStr, colorStr, and
shapeStr parameters:
[Inspectable(defaultValue="strawberry")]
public var flavorStr:String;
[Inspectable(defaultValue="blue")]
public var colorStr:String;
[Inspectable(defaultValue="circular")]
public var shapeStr:String;
In the Property inspector and the Parameters tab of the Component inspector, Flash displays
all of these parameters as type String.
Metadata tags
The following table describes the metadata tags you can use in ActionScript class files:
The following sections describe the component metadata tags in more detail.
Tag Description
Inspectable Exposes a property in the Component inspector and Property
inspector. See “About the Inspectable tag” on page 151.
InspectableList Identifies which subset of inspectable properties should be listed in the
Property inspector and Component inspector. If you don't add an
InspectableList attribute to your component's class, all inspectable
parameters appear in the Property inspector. See “About the
InspectableList tag” on page 153.
Event Defines a component event. See “About the Event tag” on page 153.
Bindable Reveals a property in the Bindings tab of the Component inspector.
See “About the Bindable tag” on page 154.
ChangeEvent Identifies a event that cause data binding to occur. See “About the
ChangeEvent tag” on page 156.
Collection Identifies a
collection attribute exposed in the Component inspector.
See “About the Collection tag” on page 157.
IconFile Specifies the filename for the icon that represents this component in
the Components panel. See “About the IconFile tag” on page 158.
ComponentTask Specifies the filenames of one or more associated JSFL files to
perform tasks in the authoring environment. See “About the
ComponentTask tag” on page 158.