User Guide
134 Creating Simple Visual Components in ActionScript
The following example modifies the component in the section “Defining public properties in
ActionScript” on page 125 to make the
maxFontSize and minFontSize properties usable as
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 [Bindable] metadata tag, Flex automatically dispatches
an event named
propertyChange when the property changes to trigger the data binding. If
the property value remains the same on a write, Flex does not dispatch the event or update the
property.