Option
environment
format
listOffset
name
type
variable
verbose
The following example defines the
[Inspectable(defaultValue=true, verbose=1, category="Other")]
var enabled:Boolean;
The
Inspectable
[Inspectable("danger", 1, true, maybe)]
InspectableList
Use the
InspectableList
parameters should appear in the Property Inspector or Component definition panels in the Flash
MX 2004 user interface.
The
InspectableList
base class. Only the properties in this list are marked as inspectable. Use the
keyword in combination with the
subclassed components.
If you do not add an
inspectable parameters, including those of the component's parent classes, appear in the Flash
Property inspector.
64
Chapter 3: Creating Advanced Components in Flash MX 2004
Type
Description
String
(Optional) Notes which inspectable properties should not be allowed
(
), which are used only for Flash (
none
only by Flex and not Flash (
String
(Optional) Indicates that the property holds a value with a file path.
Number
(Optional) Defines the default index of a List value. Added for
backward compatibility with Flash MX components.
String
(Optional) Defines a display name for the property; for example,
. If not specified, use the property's name, such as
Width
String
(Optional) Specifies the type. If omitted, use the property's type. The
following values are acceptable:
• Array
• Object
• List
• String
• Number
• Boolean
• Font Name
• Color
If the property is an array, you must list the valid values for the array.
String
(Optional) Specifies the variable to which this parameter is bound.
Added for backward compatibility with Flash MX components.
Number
(Optional) Indicates that this inspectable property should be
displayed in the Flash user interface only when the user indicates
that verbose properties should be included. If this property is not
specified, Flash assumes that the property should be displayed.
enabled
keyword supports loosely typed properties, as the following example shows:
metadata keyword to specify exactly which subset of inspectable
metadata keyword eliminates inheritance of inspectable properties in the
Inspectable
InspectableList
).
MXML
parameter as inspectable:
keyword to hide inherited attributes for
metadata keyword to your component's class, all
), and which are used
Flash
_fontWidth
InspectableList
Font
.
Need help?
Do you have a question about the FLEX - DEVELOPING COMPONENTS AND THEMES and is the answer not in the manual?
Questions and answers