ActionScript 3.0 :: Flex List Drag And Drop?

Jan 16, 2010

I have set up some lists (<mx:List>) in Flex... I have drag and drop working fine, in that I can move elements easily from list to list. For some reason though, my DragInitiator and the currentTarget of my event are the same... even though I am obviously moving from list to list... Does anyone have an example of a function that I can call on my "dragComplete" event that will tell me the current target which will give me the id of the List object I am dropping on?This is my current function which is always returning true...

Code:
private function _dropped(e:DragEvent):void
{

[code].....

View 2 Replies


Similar Posts:


Flex :: Enable Drag And Drop In List?

Oct 10, 2010

I have a Spark List with a TileLayout. I want to enable moving itemRenderers around to be able to order items.

View 1 Replies

Flex :: Drag-and-drop Onto List Item?

Oct 21, 2010

I have a List with an item renderer and would like to enable drag-and-drop onto the items in the list, rather than adding the data to the list. Is it possible to find the item that is being hovered over when dragging?

View 1 Replies

Flex :: Drag And Drop Between List Control And Chart?

Feb 18, 2010

I am trying to implement a drag and drop function between a list control and a columnchart in Flex3. List items should, when dragged and dropped on the chart, be displayed raphically in the columnchart.Alas, dropping the listitems on the chart does not seem to result in a proper graph.Here my code till so far with regard to the drop part:

private function doDragDrop(event:DragEvent):void{
var ds:DragSource = event.dragSource;
var dropTarget:ChartBase=ChartBase(event.currentTarget);

[code]....

View 1 Replies

Flex :: Drag And Drop (list Items To Canvas)

Jun 27, 2011

I just started using Flash Builder 4 (yesterday infact).

I have two lists and a canvas. When dropping a list item onto the canvas, i want to trace what item it is (the label and data) and which list it came from. From there, i want to add an image to the canvas according to the dropped item.

Here's my current code

private function componentDragEnterHandler(event:DragEvent):void {
DragManager.acceptDragDrop(Canvas(event.currentTarget));
DragManager.showFeedback( DragManager.COPY );
}

[Code].....

View 1 Replies

Flex :: DataGrid / List Drag And Drop - How To Avoid Copying

Jul 21, 2011

I'm using drag and drop on a DataGrid to reorder items. However, when the user holds down Ctrl he can initiate a drag Copy operation. How can I disable copying altogether? (not just cancel the drop, but also prevent Ctrl + drag from showing the (+) icon)

View 2 Replies

ActionScript 3.0 :: Flex Drag And Drop - Get What Value Have In The List When Click On Submit

Apr 14, 2009

[Code]...

1. If i select one and drop it to the next list, then i select two and drop. the value one must be replaced by two.

2. When i click on submit i need to get what value i have in the list.

3. I need to check whether its right or wrong.

View 1 Replies

Flex :: Set The "format" Used For Drag'n'drop On A List Control?

Dec 21, 2009

I'm dragging from a TileList to a custom component. I want to know what is being dragged before I accept it. How do I set the "format" that is used for "event.dragSource.formats" in the DragEvent?

Edit for clarification: When you set "dragEnabled=true" on the TileList, it takes care of the drag source stuff, but it uses "items" as the format for the DragEvent. I'm looking for a way to have the TileList use the correct format.

View 2 Replies

ActionScript 2.0 :: Drag And Drop From List?

Jun 2, 2007

I'm looking for a way to drag names from a scrollable list and drop them into another area.From what I've read, it doesn't seem like I can use the List component if I want to achieve this, but I'm having trouble thinking of a way.Basically, I'm going to have a input text box that will be used to be populate the list. Then I would like the ability to drag the names from the list to a blank area.I was able to get it working with the input text box to populate the list, it was just the dragging part that caused me trouble.

View 12 Replies

ActionScript 3.0 :: Drag & Drop, Call A Method If List Changes?

Aug 8, 2011

I have two spark lists,backed up by Array Collections, both of which accept drag & drop either to move objects between them or to reorder within the lists. I have a method which is called on drop which resets some properties of the object to 0, this works as expected...
 
protected function list_dragDropHandler(event:DragEvent):void
{
if(event.action != DragManager.NONE)
{

[Code]..... 
 
What I would like to do is only call this method only when the objects are moved to another list, currently it is called when I reorder within the same list too

View 2 Replies

ActionScript 3.0 :: Drag And Drop An Object From A List Of Objects?

Aug 21, 2011

I'm creating an application where the user can select an object from a list of objects, and then put it on the main window.

I want to have the list of objects presented like in the web app : [URL]

The user can select a category, then the list of objects of that category is displayed, then he can drag and drop an object to the main window.

How is it possible to do this, having a list of objects?

View 0 Replies

ActionScript 3 :: List Drag And Drop And TextInput Focus Priority

Oct 31, 2011

I'm using a Spark List with a TextInput in the ItemRenderer, with ability for the user to reorder the list rows by drag'n'dropping them. This is how I declared the list :

<s:List id="list" left="245" top="119" width="667" height="433"
dragDrop="insertItem(event)" dragEnabled="true"
dragEnter="acceptDrop(event)"
dragComplete="finalizeDragAndMove(event)"
dragMoveEnabled="true" dropEnabled="true" focusAlpha="0"
skinClass="components.DataList_Campaign"
hasFocusableChildren="true" />

Everything works fine, except that it's impossible to select the text in the TextInput with the mouse, instead it's dragging the row...How can I set the TextInput to have priority over drag'n'drop ?

View 1 Replies

Flex :: Using Drag & Dop Into List Get List Items?

Nov 23, 2009

while i using drag & drop from listbox1 to listbox2 ,how can i get all the items of listbox2 in flex

View 1 Replies

Flex Drag And Drop

May 19, 2009

I am trying to do a flex drag and drop. It is very similar to this first example.url....The problem is that event.currentTarget.mouseX,mouseY is showing the position where I put the mouse down rather than the position where I had finished dragging.

View 1 Replies

Flex :: Drag And Drop Between Datagrids?

May 5, 2010

we want to drag a button with a css layout from one grid to the other. On the second grid should be the same button with this layout. The grids are in different mxml files.

View 2 Replies

Flex :: Drag And Drop In Canvas?

Feb 1, 2011

I'm doing an application in flex where I draw different sprites inside a canvas. Depending of the dimensions, scrollbars can be appear. I would like to move the "image" with the movement of the mouse as you can see at the Adobe Reader when you are reading a document with zoom (hand mouse icon). In this way, you dont have to touch the scrollbar.I'm start trying with drag and drop properties of the canvas, setting the position of the scrollbar according with the movement of the mouse but that is not as I expect.

View 2 Replies

Flex :: Drag And Drop Icon?

Mar 7, 2011

I am dragging item from a datagrid and while dragging I could see all of the columns in the selected record, being getting dragged. However I only want to show one column (maybe name or id of the record)? Is there a way to achieve this? Also, could I show an icon or image instead of the record while dragging.

View 1 Replies

Flex :: Drag And Drop Of FXG Graphics

Apr 27, 2011

I am building a flex project involving drag+drop of fxg graphics. My graphic is instantiated as below:
<graphics:arrow2 id="object" mouseMove="mouseMoveHandler(event);" />
I get an error: "Call to a possibly undefined method Graphic."

This works if I change my drag-object to Image and replace the 'Graphic' below with 'Image'. What should I use to be able to reference the fxg graphic in the drag-drop? My drag drop functionality is as follows
private function mouseMoveHandler(event:MouseEvent):void {
var dragInitiator:Graphic = Graphic(event.currentTarget);
var ds:DragSource = new DragSource();
ds.addData(dragInitiator,"gph");
DragManager.doDrag(dragInitiator, ds, event);
[Code] .....

View 1 Replies

Flex :: Drag And Drop Of Swc Components

Apr 28, 2011

We need a capability by which we can drag and drop swc components in our Flex Application.

View 1 Replies

Flex :: Adobe - Create Smooth Transitions For Drop Down List In Flex For Desktop Applications?

Jan 22, 2012

I have a drop down list for selecting the titles for a person, I want to employ smooth drop down when i select the drop down menu.

View 1 Replies

Flex :: Flex Drag And Drop Between AdvancedDataGrid With Custom ItemRenderer

Feb 26, 2011

I have implemented drag and drop between 2 AdvancedDataGrid, but the default behaviour from Flex displays the row data during the drag using the grid item renderer showing all 5 columns.

Instead, I would like to display an icon / image or my own custom item renderer during the drag and drop.

View 2 Replies

Flex :: Drop Down List For Air Mobile?

Mar 23, 2012

Is there any dropdownlist for flex mobile , which can be used for free in commercial app and not paid one

View 1 Replies

Flex :: Drag And Drop Onto AdvancedDataGrid Cell

Sep 14, 2009

How do I determine which Flex AdvancedDataGrid cell - row and column index - I've just dropped onto? calculateDropIndex seems to give me the row, but how do I get the column?

View 1 Replies

Flex :: Prevent In Drag And Drop, Dragging Onto Self?

Oct 19, 2009

I was wondering, if I have two list boxes, and I want to drag and drop between both of them, how do I prevent the user from dragging onto the same list (thus duplicating the item? I cannot have a situation where that is the case

View 5 Replies

Flex :: Tree Drag And Drop Functionality

Dec 8, 2009

[code]I want a tree in this structure, having line between the nodes, also, instead of Open and Close Folders, I have added my own graphic there with label. I did by extending TreeItemRenderer Class. Now, I if iam dragging and dropping a child node ex:label5, and try i drop it above label1 here, it is getting dropped there. i.e.,it is becoming like.[code]

View 1 Replies

Flex :: Drag&Drop In Advanced DataGrid?

Jan 18, 2010

I have a Advanced DataGrid for displaying the number of rows from the Database and one row strictly should not allowed drag option. Is is possible

View 1 Replies

Flex :: Drag And Drop From Datagrid To Uicomponent?

Aug 10, 2010

I'm trying to drag an item from a datagrid and drop it onto a UIComponet. Basically I just want the UIComponent to know that something has been dropped onto it and allow it to access the data of the dropped item.

I thought just listening for the drop event would do it but it seems not.

I found lots of documentation on dragging from one IList to another but nothing for this.

<mx:UIComponent xmlns:mx="http://www.adobe.com/2006/mxml"
initialize="init(event)" dragDrop="itemDropped(event)">

View 1 Replies

Actionscript 3 :: Drag And Drop To A Sprite In Flex?

Sep 13, 2010

I need to detect when a user d-b-n-d an object into a sprite. I'm adding the 3 event listeners I need, but only one of them works:

ontainer.addEventListener( DragEvent.DRAG_ENTER, dragEnterHandler);
container.addEventListener( DragEvent.DRAG_EXIT, dragExitHandler);
container.addEventListener( DragEvent.DRAG_DROP, dragDropHandler);

[code]....

View 1 Replies

Jquery :: Vs Flex For Drag-n-Drop Interface

Nov 24, 2010

I'm developing an application that will randomize a list of words, and display them to the user. The user will then be able to drag the box containing each word over a Cartesian plane, and drop it anywhere they like. They will also be able to link various words together on the same plane. Once a user has completed these tasks, I want to update a database with that user's data - the coordinates of each word, as well as any parent words that may exist for each word. I started developing the application in Flex, but I'm running into problems integrating the data manipulation. It might just be me, but I find the way Flex is structured to be very counter-intuitive. I'm playing around with shifting the project over to perhaps a JQuery build. I'm proficient in neither JQuery nor Flex, however, and I'm not sure which one will be easier to pick up and develop a working prototype with.

View 1 Replies

Flex :: Drag And Drop On Lattice Grid?

Feb 27, 2011

I am trying to build a visual simple electric circuitry model. Towards thata) I am looking to build a drag & drop functionality, whereby I have items (wires, resistors, battery) that can be dragged and dropped on screen where I have a 10 x10 grid- the dropped items will take line positions on the grid based on where they fall.Should I do this using the mouseX, mouseY and connect them to grid points they fall closest to? The typical drag and drop examples I have seen, don't concern themselves with exact position in destination- which is obviously important here

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved