The alpha, scaleX, and scaleY properties
This change formerly applied to the UIObject class, but because UIObject and
UIComponent have been combined into a single base class, the change now applies to
the UIComponent class.
The
,
, and
alpha
scaleX
For example, to make a UIObject 50% opaque, specify
stretch the object horizontally by a factor of two, specify
The default value for the
The width and height properties
This change formerly applied to the UIObject class, but because UIObject and
UIComponent have been combined into a single base class, the change now applies to
the UIComponent class.
The
and
width
height
and
to a Number (such as 50) or a String (such as "50%"). Because the type is
width
height
now only a Number, you can no longer use the following syntax in your ActionScript:
myUIObject.width = "50%";
To set widths and heights using percentage values, you must now use the following syntax:
myUIObject.percentWidth = 50;
However, in MXML, you can express the
example, the following two lines of code are valid:
<Canvas width="50%">
<Canvas percentWidth="50">
The addEventHandler() method
This change formerly applied to the UIObject class, but because UIObject and
UIComponent have been combined into a single base class, the change now applies to
the UIComponent class.
The
addEventHandler()
inherited from the flash.events.EventDispatcher class.
50
Flex Classes
properties now range from 0 to 1 instead of from 0 to 100.
scaleY
property is now 0.3.
focusAlpha
properties are now typed as Number. In Flex 1.5, you could set the
width
method has been removed from UIObject. This method is now
instead of
alpha=0.5
instead of
scaleX=2
property as a pixel or percentage value. For
. To
alpha=50
.
scaleX=200
Need help?
Do you have a question about the FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 and is the answer not in the manual?
Questions and answers