Posts Tagged ‘mx:XML’

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 »


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 »


Creating a simple image gallery with the Flex TileList control – mx:TileList

No Comments »

Flex Photo gallery in Flex using the TileList control, Image control, and the PopUpManager class.

Read More »