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 »Archive for February 14th, 2010
February 14th, 2010
No Comments »
February 14th, 2010
No Comments »
The following example shows how you can control the amount of text indenting on a progress bar label.
Read More »
February 14th, 2010
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 »
February 14th, 2010
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 »
February 14th, 2010
No Comments »
The following example shows how you can position callouts in a PieChart control’s pie series by setting the labelPosition
Read More »
