Archive for February 14th, 2010

Dragging(Drag & Drop) from a Tree to a List/TileList – DragManager

No Comments »

In the Flex framework, we have made dragging and dropping within various List components fairly trivial. Assuming that your data is similar, you simply need to add dragEnabled=true to your source and then dropEnabled=false for your destination. However, the one exception in this case is Tree. By default, you cannot drag any items from any other drag enabled List component (other than another tree). If you look at the source of the framework, you will see that all of the event handlers used for TileList, List, HorizontalList and DataGrid are in ListBase.as. However, Tree has its own custom drag event handlers. Therefore, if you want to share data between another List component and a Tree using drag and drop, you will need to override all of the drag event handlers. These handlers include dragEnter, dragDrop, dragComplete and dragOver. Here is an example Application where you can drag items from a Tree to a TileList. The items will be removed from the Tree.

Read More »


Setting a Flex ProgressBar control’s text indent – mx:ProgressBar

No Comments »

The following example shows how you can control the amount of text indenting on a progress bar label.

Read More »


Animating a Flex PieChart control’s rotation when a user clicks on an item – mx:SeriesInterpolate mx:showDataEffect

No Comments »

In a previous example, “Rotating a Flex PieChart control when a user clicks on an item”, we looked at changing a PieChart’s rotation when the user clicked on a pie wedge. In the following example, we look at how to add a nice animation effect with some easing to make the effect a bit more smooth.

Read More »


Exploding wedges in a Flex PieChart control – perWedgeExplodeRadius

1 Comment »

The following example shows how you can explode specific wedges in a PieChart control when the user clicks an item in the chart.

Read More »


Positioning labels in a Flex PieChart control – mx:PieChart mx:series mx:PieSeries

No Comments »

The following example shows how you can position callouts in a PieChart control’s pie series by setting the labelPosition

Read More »