User Guide
938 Chapter 7: Creating Components
The following table describes the attributes of the Inspectable tag:
None of these attributes are required. You can simply have Inspectable as the metadata tag.
All properties of the superclass that are marked Inspectable are automatically inspectable in the
current class. Use the InspectableList tag if you want to hide some of these properties for the
current class.
About the InspectableList tag
Use the InspectableList tag to specify which subset of inspectable properties should appear in the
Property inspector. Use InspectableList in combination with Inspectable so that you can hide
inherited attributes for components that are subclasses. If you do not add an InspectableList tag to
your component’s class, all inspectable parameters, including those of the component’s parent
classes, appear in the Property inspector.
The InspectableList syntax is as follows:
[InspectableList("attribute1"[,...])]
// class definition
Attribute Type Description
defaultValue
String or
Number
(Optional) A default value for the inspectable property.
enumeration
String (Optional) Specifies a comma-delimited list of legal values for
the property.
listOffset
Number (Optional) Added for backward compatibility with Flash MX
components. Used as the default index into a List value.
name
String (Optional) A display name for the property. For example, Font
Width. If not specified, use the property’s name, such as
_fontWidth.
type
String (Optional) A type specifier. If omitted, use the property’s type. The
following values are acceptable:
• Array
• Boolean
• Color
• Font Name
• List
• Number
• Object
• String
variable
String (Optional) Added for backward compatibility with Flash MX
components. Specifies the variable that this parameter is bound
to.
verbose
Number (Optional) An inspectable property that has the verbose attribute
set to 1 does not appear in the Property inspector but does appear
in the Component inspector. This is typically used for properties
that are not modified frequently.