MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Bedienungsanleitung Seite 121

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 184
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 120
Using styles 121
Changed style properties
The following table shows changes to the CSS style property names:
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 borderStyle style because it’s not a valid style
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
setStyle() method. This section
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 #RRGGBB format or a
constant (for example,
red). These rules apply to CSS whether you are using the <mx:Style>
tag or an external CSS file. Previously, you could use the
0xRRGGBB notation or quoted values.
Flex 1.x Name Flex 2 Name
drop-shadow drop-shadow-enabled
margin-bottom padding-bottom
margin-left padding-left
margin-right padding-right
margin-top padding-top
tool-tip-offset data-tip-offset
tool-tip-precision data-tip-precision
tool-tip-placement data-tip-placement
track-highlight show-track-highlight
Seitenansicht 120
1 2 ... 116 117 118 119 120 121 122 123 124 125 126 ... 183 184

Kommentare zu diesen Handbüchern

Keine Kommentare