Adobe FLEX 2 - CREATING AND EXTENDING COMPONENTS Manual page 134

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

Advertisement

The following example modifies the component in the section
ActionScript" on page 125
the source for data bindings:
// Define public properties for tracking font size.
[Bindable]
public var maxFontSize:Number = 15;
[Bindable]
public var minFontSize:Number = 5;
If you omit the event name from the
an event named
propertyChange
the property value remains the same on a write, Flex does not dispatch the event or update the
property.
134
Creating Simple Visual Components in ActionScript
to make the
maxFontSize
[Bindable]
when the property changes to trigger the data binding. If
"Defining public properties in
and
minFontSize
metadata tag, Flex automatically dispatches
properties usable as

Advertisement

Table of Contents
loading

Table of Contents