Flex Drag Drop Component


 

Flex Drag Drop Component

In this tutorial you will get to know about drag drop Component in Flex. Examples will illustrate this component.

In this tutorial you will get to know about drag drop Component in Flex. Examples will illustrate this component.

 

Flex  Drag and Drop Component:

The Flex 4 Drag and Drop is a process for selecting an item from a list or component and move on mouse pointer  and drop when release mouse pointer. Item are put from one position to another position or one list  to another list.

For example :-

<?xml version="1.0"?>

<!-- dragdrop\SimpleTreeSelf.mxml -->

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

<mx:Script>

<![CDATA[

private function initApp():void {

treeList.dataProvider = DP;

}

]]>

</mx:Script>

<mx:XML id="DP">

<node label="Name">

<node label="Deepak"/>

<node label="Ravi kant"/>

<node label="Brijesh"/>

<node label="Avanish"/>

</node>

</mx:XML>

<mx:Tree id="treeList"

showRoot="false"

labelField="@label"

dragEnabled="true"

dropEnabled="true"

allowMultipleSelection="true"

0

creationComplete="initApp();"/>

</mx:Application>

1

Output:

Ads