Home Tutorial Flex Flex-components Flex Drag Drop Component

 
 

Flex Drag Drop Component
Posted on: March 11, 2010 at 12:00 AM
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"

creationComplete="initApp();"/>

</mx:Application>

Output:

Related Tags for Flex Drag Drop Component:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.