Adobe FLEX 2 - CREATING AND EXTENDING COMPONENTS Manual page 59

Creating and extending flex 2 components
Hide thumbs Also See for FLEX 2 - CREATING AND EXTENDING COMPONENTS:
Table of Contents

Advertisement

The following table describes the properties of the [
Property
Type
String
category
String or
defaultValue
Number
String
enumeration
environment
String
String
format
Number
listOffset
String
name
type
String
Description
Groups the property into a specific subcategory in the Property
inspector of the Flex Builder user interface. The default category is
.
"Other"
Sets the initial value in the editor that appears in the Property
Inspector when you modify the attribute. The default value is
determined from the property definition.
Specifies a comma-delimited list of legal values for the property.
Only these values are allowed; for example,
This information appear as code hints and in the Property Inspector.
If you define a Boolean variable, Flex Builder automatically shows
and
without you having to specifying them using
true
false
.
enumeration
Specifies which inspectable properties should not be allowed (
which are used only for Flex Builder (
by Flex and not Flex Builder (
Determines the type of editor that appears in the Property Inspector
when you modify the attribute. You can use this property when the
data type of the attribute is not specific to its function. For example,
for a property of type Number, you can specify
cause Flex Builder to open a color editor when you modify the
attribute. Common values for the
,
,
"Color"
"Time"
"EmbeddedFile"
Specifies the default index into a List value.
Specifies the display name for the property; for example,
If not specified, use the property's name, such as
Specifies the type specifier. If omitted, use the property's type. The
following values are valid:
Array
Boolean
Color
Font Name
List
Number
Object
String
If the property is an Array, you must list the valid values for the Array.
metadata tag:
Inspectable]
item1
), and which are used only
Flash
).
MXML
format="Color"
property include
format
, and
.
"File"
,
,
.
item2
item3
),
none
to
,
"Length"
.
Font Width
.
_fontWidth
Metadata tags
59

Advertisement

Table of Contents
loading

Table of Contents