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

Migrating applications to flex 2
Table of Contents

Advertisement

Changed style properties
The following table shows changes to the CSS style property names:
Flex 1.x Name
drop-shadow
margin-bottom
margin-left
margin-right
margin-top
tool-tip-offset
tool-tip-precision
tool-tip-placement
track-highlight
Missing style properties
If you applied a style property to a component that did not support that style property, Flex
would fail silently. Now, Flex enforces style setting and throws compilation errors when you
try to apply a style to a component that does not support that style. You should check the
component's entry in Adobe Flex 2 Language Reference to see the legal styles for each
component you use.
In Flex 1.5:
<mx:Button label="my link" borderStyle="solid"/>
In Flex 2, the compiler throws an error for the
on a Button control.
Using colors
The support color value formats have changed. Which format is supported depends on
whether you are setting the color in CSS or using the
describes the valid and invalid formats.
Color value formats in CSS
In CSS, color values must be un-quoted, and can be in either the
constant (for example,
tag or an external CSS file. Previously, you could use the
Flex 2 Name
drop-shadow-enabled
padding-bottom
padding-left
padding-right
padding-top
data-tip-offset
data-tip-precision
data-tip-placement
show-track-highlight
). These rules apply to CSS whether you are using the
red
style because it's not a valid style
borderStyle
method. This section
setStyle()
#RRGGBB
notation or quoted values.
0xRRGGBB
format or a
<mx:Style>
Using styles
121

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents