Adobe FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual page 52

Migrating applications to flex 2
Table of Contents

Advertisement

Enumerated values are now constants
In many cases, properties that took a predefined list of values (such as the Button control's
property taking
labelPlacement
well. For example, the
constants:
ButtonLabelPlacement.RIGHT
ButtonLabelPlacement.LEFT
ButtonLabelPlacement.BOTTOM
ButtonLabelPlacement.TOP
Other properties that now use constants include the Box control's
Container control's
creationPolicy
the ProgressBar control's
This change applies to ActionScript code. In general, the MXML usage has not changed.
life-cycle methods
The
createChildren()
updateDisplayList()
These are component life-cycle methods that the framework calls, and which component
developers must override, but they should not be called directly.
Flex 1.x:
override public function measure():void {
...
}
Flex 2:
override protected function measure():void {
...
}
mx.core.UIObject
The UIObject base class has been merged with the UIComponent class. UIComponent is
now the lowest-level base class for nonskins. For information about changes to the combined
object, see
"mx.core.UIComponent" on page
52
Flex Classes
,
right
left
property can now take one of the following
labelPlacement
,
hScrollPolicy
,
direction
labelPlacement
,
childrenCreated()
methods of UIComponent are now protected rather than public.
,
, and
) now take class constants as
bottom
top
direction
, and
vScrollPolicy
, and
mode
,
commitProperties()
47.
property; the
properties, and
properties.
,
, and
measure()

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents