Flex :: Get Selected Items Drag & Drop Component?

Dec 2, 2009

How to get all the selected items from in this below code selectedContsList ?

<mx:DataGrid id="dg" dataProvider="{cNumbersList}" allowMultipleSelection="true" dropEnabled="true" dragMoveEnabled="true" >
<mx:columns>

[code].....

View 1 Replies


Similar Posts:


Flex :: Access Items Selected In A Component From The Main App?

Sep 11, 2010

How can I Access Items Selected in a Component from the Main App I've got a component that has a listControl and a couple of RadioButtonGroups. I need to access the selected items in the main application. What's the best/simplest way to create and access the array of selected items. So, the user clicks the button to confirm the selections and then I need to access those selections in the main app. Is there a way I can use a public var to build the array? Another idea?

<mx:Tile direction="horizontal">
<mx:Box>
<mx:Label text="Year" fontWeight="bold"/>
<mx:List id="myYear" >

[code]....

View 2 Replies

Flex :: Access Items Selected In A Component From The Main App

Sep 6, 2009

How can I Access Items Selected in a Component from the Main App

I've got a component that has a listControl and a couple of RadioButtonGroups. I need to access the selected items in the main application. What's the best/simplest way to create and access the array of selected items. So, the user clicks the button to confirm the selections and then I need to access those selections in the main app. Is there a way I can use a public var to build the array? Another idea?

<mx:Tile direction="horizontal">
<mx:Box>
<mx:Label text="Year" fontWeight="bold"/>

[Code]....

View 2 Replies

Flex :: Drag And Drop - Prevent Dragging For Certain Items?

Mar 22, 2010

how would you prevent dragging for some items of your List or DataGrid?

Let's say I had a list with two items: 'Tom' and 'Jerry'. Only 'Tom' should be dragable, not 'Jerry'.

Ideally I had a 'isDragEnabled(item:Object):Boolean' function, which is being queried by the drag source.

My difficulties start with the fact that the 'dragStart' event handler has a null value for the dragSource, so right from the start I find it hard to find out what the drag-start is about..

PS There have been a few discussions on preventing or canceling a drop, but I haven't seen much about preventing the drag start, hence this question.

View 3 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 :: Default To Copying / When Drag And Drop Your Items?

Jun 10, 2009

Why is it that, when I enable dragging-and-dropping in a TitleGrid, items are copied when they are dragged instead of moved?[code]When either of those items is clicked-and-dragged, it will get copied instead of moved.This is especially confusing because TileList is a decedent of ListBase, which DataGrid also descends from..But DataGrid does the right thing when dragging and dropping items.

View 1 Replies

IDE :: Drag - Drop And Rotate Selected MovieClip

Oct 14, 2009

Im building a game, where the user has several images as movieclips. He can drag them to an area of the stage, and selecting them, he could rotate it. Does anybody knows some tutorials on hoe to start?

View 2 Replies

ActionScript 3.0 :: Getting Selected Items From List Component?

Oct 26, 2010

I'm having troubles getting selectedItems from a List Component in Flash CS4. Each time I select multiple selections the object that selectedItems returns seems to be populated with the last selected item in each of its instances. What is strange from the example I provide below is that once you've made your selection and click the label you can update another list with the correct selected values. But the output values are still traced incorrectly.

Code:
import fl.data.DataProvider;
import fl.controls.List;
import fl.controls.Button;
var dp:DataProvider = new DataProvider();
dp.addItem({label:"Item 1"});
[Code] .....

View 0 Replies

Actionscript 3 :: Selecting Flex Chart Items And Displaying Sum Of Items Selected

Aug 26, 2009

I would like to use the selectionMode=multiple described in the Flex docs, but with a few modifications:

1) I would like the box that the user drags over the graph to remain there until the user drags a new one.

2) In the top right corner of the box I want to display the sum of the items selected by that box.

View 1 Replies

Flash :: Drag And Drop Items Between Different Objects?

May 17, 2009

It is possible to drag & drop items between different flash objects?

View 1 Replies

ActionScript 3.0 :: Drag And Drop Multiple Items To One Target

Jul 15, 2010

I'm trying to create an interactive game where multiple movieclips can be dragged onto a single target. I understand that the target and the movie clip have to have the same name, like "book_mc" has to have a target of "targetbook_mc", but is there another way to do this so that "book_mc" and "pencil_mc" can both have the same target?

View 4 Replies

Hide Drag And Drop Items Once They Have Been Dragged Into Place?

Mar 31, 2012

I have made a flash application and in this flash application I have included a jigsaw puzzle. The application is wrote on one timeline and certain frames are used as different pages within the application.

The problem is once the jigsaw drag and drop are moved the pieces are displayed on all frames instead of just the one jigsaw puzzle frame I created.

How can I make these drag and drop items not be shown on the other frames?[code]...

View 1 Replies

ActionScript 3.0 :: Create Drag/drop Shifting Items?

Jan 19, 2010

What would be a good way to create a grid of images in which one can be dragged to a new position and the other images will shift to make room for the image dragged? Looking at making a little program that will reorder an XML file by visually dragging the items to where I want them.

View 0 Replies

ActionScript 2.0 :: Resetting Multiple Drag & Drop Items

Mar 1, 2011

Basically they drag letters into a box to spell words.I have managed to get the letters to drag to the box but I would like the child to be able to reset all of the letters to their original positions.

View 5 Replies

IDE :: Reset Drag And Drop Items Without Restarting Movie Clip?

May 11, 2009

Sounds strange, but let me explain. What the user sees: Loading the page, color swatches fade in and slide over into place, row by row. Once in place, user can drag and drop swatches around, place side-by-side, etc. The script necessary to attach to a button so that all swatches can be reset back into place where they were, and not generate a replay of the initial movie clip from the beginning. (a goto and play is not what I'm looking for) Here's my code so far:

[Code]....

View 2 Replies

ActionScript 2.0 :: Dynamic Column Of Items - Handle The Drag And Drop Part

Feb 21, 2004

I basically want to be able to drag any item out of that list, and when doing so, have it that item automatically go to the bottom, and have the remaining items scroll up. I can handle the drag and drop part of it, but I'm confused on how I could get the remaining column of items to dynamically move up depending on which item is taken out. I'm thinking mayble along the lines of an array?

View 5 Replies

ActionScript 3.0 :: Can't Show The Selected Textfield In The TileList Items By Default The TileList Items Are Selected

Feb 1, 2012

I have placed TextFileds inside TileList Compontent. When i try to select the TextField it can't show the selected Textfield in the TileList items by default the TileList items are selected.Finally i need to select the TextFields.
 
Here is my code: 
 
import fl.controls.TileList;    import fl.data.DataProvider;    import flash.display.Sprite;    import flash.events.Event;
function TileListExample() {            var dp:DataProvider = new DataProvider();            var totalEntries:uint = 3;            var i:uint;            for(i=0; i<totalEntries; i++) {                dp.addItem( {  source:getTf(), scaleContent:false}

[code]....

View 5 Replies

Actionscript 3 :: Component Drag And Drop - Inside Box

Oct 17, 2011

I have created a Box component and inside it I have more then 2-3 labels placed. I need to drag the whole box component and move to different place at canvas. Technically Box type is a container type but I need to keepit all the labels inside and want to move it. Is there any way we can do that? UPDATED : Can we create any external component that allow us to drag the main box?

View 1 Replies

Flex :: Selected Items In One Alert?

Apr 27, 2011

I have 2 comboboxes which are dependent (country and state) and one submit button.
Now what i want is after user submits the form it should display one alert box which should be like

selected country is "selected item"
selected state is"selected item"

View 3 Replies

ActionScript 3 :: Drag And Drop Child Component In Parent

Oct 18, 2011

I need to drag the child component in the parent such a way that the child component can replace the place they have in parent. E.g. If I have a 3 button a,b,c inside a panel and need to movie the position of a,b,c with drag and drop the placement could be b, a, c or c, a, b and so on.

View 1 Replies

Flex :: Remove Selected Items From Search Results?

Feb 6, 2012

End-User searches for something and an ArrayCollection is returned with Result objects. This is displayed in a data grid.End-User selects a few of the search results and "moves" it over to another datagrid for use later.End-User does another search.

PROBLEM:Some of the search results might contain something the user already previously selected and moved over to the second datagrid. I want to remove these from the second search result.

View 2 Replies

Flex :: Access Selected Items In Adobe Air Using The Spinner List?

Feb 21, 2012

I am learning Adobe Air and want to get the current selected item in the spinner list I have created, however every time I use selectedItem I keep getting the same value over and over, no matter what option I select. I am trying to make an application for the Playbook and this this my SpinnerList code:

<s:SpinnerListContainer x="10" y="279" width="325" height="266">
<s:SpinnerList width="69" height="100%" enabled="true" labelField="data" selectedIndex="1" id="From">

[Code]....

No matter what, 'KM' is always shows as the selected item when it is not. This is what I have in the script tags:

var selected = From.selectedItem;

View 1 Replies

Flex :: Send The Names/labels Of Selected Items From A List To A Php File?

Oct 28, 2009

I know i can access multiply selected options of a list by

var selectedAlgos:Array = algosList.selectedItems;

where algosList is the name of my List.

How to i send this array via HTTPService to a phpfile and how can i then access the elements of this array from the php file?

View 1 Replies

Flex :: Combobox Needs To Be Selected Twice To Open Drop Down List?

Mar 12, 2011

When a combobox is elected in the flex app, there is a quick flicker, then the combobox needs to be selected again in order to get the dropdown to open. After that, the dropdown works as expected, but only while selecting the control subsequent times while on the form. Reloading the form requires the double selection again.

View 1 Replies

Flex :: Apply Focus_out Event To More Than Just Selected Component?

Apr 14, 2011

It uses a focus_out event to detect if there is a change that needs to be committed. However I notice that a FOCUS_OUT event is only called if you click away from the textfield but inside the component. Is there any way I can listen for clicks outside the component from within the component?

addEventListener(FocusEvent.FOCUS_OUT, onFocusOut);
protected function onFocusOut(event:FocusEvent):void
{[code]....

View 2 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 :: Scroll To Selected Item In Spark List Component?

Oct 21, 2009

I'm setting selected element in s:List component with Actionscript, it works, but List doesn't scroll to selected item -- need to scroll with scrollbar or mouse. Is it possible to auto-scroll to selected item

View 8 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







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