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

Migrating applications to flex 2
Table of Contents

Advertisement

In Flex 2, you set the value of the series'
ChartItem's icon:
<mx:PlotSeries itemRenderer="mx.charts.skins.halo.CrossSkin"/>
In addition, you can no longer use the AssetRenderer to use graphics in your charts. Instead,
you must use a class that implements the IDataObject interface.
Binding
In many cases, you declare a data provider object and bind the chart to that data provider. In
Flex 2, you must add the
does not bind to the data. For example:
<mx:Script>
[Bindable]
// Add this in Flex 2
public var expenses:Object = [{ ... }, { ... }, { ... }];
</mx:Script>
<mx:BubbleChart maxRadius="50" dataProvider="{expenses}"
mouseDown events
In Flex 1.5,
mouseDown
mouse's pointer. In this case, the
a way to check for the existence of a click on a chart control.
In Flex 2,
mouseDown
positioned over a data point. Instead, you must use the
alpha
All aspects of charting that used an alpha property to represent transparency, such as Strokes
and Fills, now use 0 to 1 for a range of values rather than 1 to 100. For example:
Flex 1.x:
<mx:SolidColor color="0x7EAEFF" alpha="30"/>
Flex 2:
<mx:SolidColor color="0x7EAEFF" alpha=".3"/>
itemRenderer
metadata tag to the variable declaration, otherwise Flex
[Bindable]
events included
hitData
property existed, but it was
hitData
events do not include the
property to a skin class that draws the
structures, even if no data was under the
structure unless the mouse is
hitData
mouseDownData
. This behavior was
null
event.
Charting
167

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents