Flex :: List - Detecting Dragged Data

Aug 5, 2011

I have a list that accepts drops. When an item is dropped (DragEvent.DRAG_DROP) I need to collect the data that is dropped, however I have found nothing in the event thatdo so, event.dragInitiator.selectedItems would work but gives me an error.

View 1 Replies


Similar Posts:


Flex :: Events - Drag & Drop: Detecting When All Data Has Been Moved From Source To Destination

Oct 5, 2009

I have two mx:TileList controls that I'm using to allow editing of objects in batch. The first contains a collection of all available data, and the 2nd contains the current batch. Both are bound to ArrayCollections, and using the native drag-n-drop functionality of the TileList control the data is moved from one ArrayCollection to the other when an object is dragged between them.

I need to change the currentState to show & reset the batch manipulation controls when the batch count goes from 0 to n or n to 0 items. Based on the documentation, I would have thought that I should listen to the dragComplete event, but my testing shows that instead of firing after the data has been removed from the source ArrayCollection and added to the destination ArrayCollection, it fires (consistently) between these two actions.

[Code]...

View 2 Replies

ActionScript 3.0 :: Detecting End Of List?

Sep 30, 2009

I am trying to implement paged recordsets in a datagrid and since I've not been able to find a way as a standard feature of as3 (recordset type was not provided in as3) - I'm cooking my own.The only problem I have is knowing when additional records should be requested. I need to be able to tell when the scroll bar or other method is used to scroll the datagrid down to the end (or near the end).

View 4 Replies

Flex - Getting Data From An Xml List?

Aug 10, 2011

i have a simple xml like so:

<root Name="Bob" isImployed="true">
<customer Name="Bob" id="12345">was addressed in the shopping mall</customer>
<Job-title>Insurance</Job-title>
<experience>15</experience>
<Question1 question="how much do you make?">35000</Question1>
<Question2 question="do you get a yearly bonus?">5000</Question2>
<Question3 question="would you be interested in our weekly plan?">yes</Question3>
</root>

[Code]...

I would like to go over all the questions (there are more than question1,question2 and question3). some of those contain numbers (salary, bouns) and some don't. I am looking for a way to go over the whole list, querying if the answer is a number or not, and if so - get the number. (and do some calculation with it).

View 2 Replies

Flex :: Dynamic Adding Data Into List?

Dec 17, 2009

I have an XML file, I read the data and want to add it to a List and then use the List to be displayed.

Something like this is what I want to do:

List data = new ArrayList();
data.add(item1);
data.add(item2);

How can I do this, also how will I display the List in a table!!

View 2 Replies

Flex :: Why List Not Displaying Data From ArrayCollection

Feb 23, 2011

I'm working on a flash cards application and am using an ArrayCollection of Objects to store each cards individual data. When the user click the 'save' button, the text from the two textAreas and the 'title' textinput are stored in the AC as one object with .title, .side1 and .side2 properties that contain the text from the flash card. I have made a List in a separate class I want to have display the title of each card the user has created, but after days of researching and looking around, I still cannot get the display to list the titles.

Part of my NewCard.mxml:
<?xml version="1.0" encoding="utf-8"?>
<fx:Script><![CDATA[
import flash.events.EventDispatcher;
import mx.collections.ArrayCollection;
import spark.effects.SlideViewTransition;
[Code] .....

View 1 Replies

Flex :: Data Binding - ComboBox And XML List

Mar 19, 2011

I have a bit of a problem (since I'm not used to binding with AS3), the thing is that I want to do this kind of data binding:

<mx:Application xmlns:mx="[URL]"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
[Code] .....

But the ComboBoxes are being created dynamically with AS3, everything is working except I cant bind the second ComboBox dataProvider to be the XMLList in the first ComboBox's selectedItem.

View 3 Replies

Flex List-controls - Maintain Remote Data?

Aug 29, 2009

I have a TileList which represents some remote data. I also have a form which allows me to change the data. And the data may be changed by someone else too.

What is the best way to maintain data in the list in an up-to-date state? The simplest option I see is the following:

Select an item in the list Edit it in the form Save it. The form submits the data to the server When the server reports success the list re-fetches it's data The very bad thing about this workflow is that the list loses selection (a tree would also loose the nodes' expanded/collapsed state). I would really love to find out another option which would enable the list to maintain it's selection state.

View 1 Replies

Flex :: How To Clear Existing List Data Values

Feb 17, 2010

I would like to know how to delete(clear) the existing list data values before binding new values. I'm using the list for binding data dynamically using http services. When I make a new call to the service, I want the exiting items to be flushed and bind the newly retrieved data to the same list. How can I achieve this?

View 2 Replies

Flex :: Set HTML List As Mx:DataGrid Data Provider?

Mar 19, 2010

So I have Html like this [URL] (I want to create some Flash Track reader which will be opensource)

I need to list in my DataGrid Index of all viki pages in form like

+-----------+--------+
|page name |page url|
+-----------+--------+
| name | url |
+-----------+--------+

View 1 Replies

Flex :: List - Data In Components Spark In A ItemRenderer?

Apr 25, 2011

I need to create a slideshow using data received from another view.I'm calling the slideshow's view like this:

<s:List id = "list" dataProvider = "{actions}"
change = "navigator.pushView (DetailsProduct, list.selectedItem) ">
<s:itemRenderer>

[code].....

View 1 Replies

Flash :: Detect When Flex Spark List's Data Has Changed

Oct 6, 2010

I need to detect when a Flex Spark List (spark.components.List) data has changed so that I can programmatically change its scrollbar. I know that List is a an EventDispatcher but it's unclear which event I'd register for.

Edit: My List's dataProvider is an ArrayCollection that elements are added too. So the dataProvider is never replaced. I considered listening to the backing ArrayCollection, but it's possible the List will react to the change after my listener, which alters the scrollbar. Thus my listener's changes will be superseded by that of the List.

View 1 Replies

Flex :: Add Java Object Bean List In Data Grid?

Dec 25, 2010

I am using flex with java.

I am fetching data from DB and put in object bean by setter and getter . and make list of beans.

this list i want to show in data grid in flex.

View 1 Replies

Php :: Make Returned From PHP Data Fill MXML Flex Mx:List (Using Actionscript And PHP)?

Mar 10, 2010

I am Using Flex 3 and apache with PHP 5.2. I am searching for simple as possible way to fill my mx:List with data using POST URLRequest.

In Flex builder I am using the next code

public var variables_se:URLVariables = new URLVariables();
public var varSend_se:URLRequest = new URLRequest("DataProvider.php");
public var varLoader_se:URLLoader = new URLLoader;

[Code]...

View 2 Replies

Flash :: Flex Spark List Scroll To Bottom When New Data Is Added

Oct 6, 2010

I have a Spark List (spark.components.List) backed by an ArrayCollection for its dataProvider. The List has a vertical scrollbar when there's too many rows to display. What I want is when a new row is added to the List for it to scroll to the bottom to show that new row.

I've tried calling List's ensureIndexIsVisible from a listener on the ArrayCollection. This doesn't work because the List hasn't yet fully rendered the new row. It will either scroll to the second from the last row, or throw the exception:

[Code]...

View 3 Replies

Flex :: Conditional Data Provider To Tree On The Basis Of List Selection?

Aug 1, 2011

This is my XML data in a file named nodesAndStuff.xml.

<?xml version="1.0" encoding="utf-8"?>
<root>
<node label="One" />[code].........

Now I have added my tree just below the list and I have saved counting from 10 to 19 in one.xml, 20 to 29 in two.xml and so on in different XML file. I have no clue how to connect the XML containing counting from 10 to 19 as the single node in tree at the selection of label one in list

View 1 Replies

Actionscript 3 :: FLEX - Adding Items To S:list From Recieved Data From Socket

Aug 17, 2011

I have s:list component in my MXML and a different actionsscript file which does the socket connection to the server.Everytime a user is connecting to the server I'm sending to all clients the updated users in the server by sending strings of ports (port for each user).Now, when the data gets to the client (to the action script file SocketData function), I want it to be added as an item to the s:List in the MXML file.

View 2 Replies

Flex :: Mobile - Move To The Next Data In List.selectedItem When Moving To Next Page?

Sep 14, 2011

When I move page01 to page02, I pass the same data along with it using the following code:navigator.pushView(Page02, data);How do I move to page02 with passing the next row of data (instead of the same data)? In other word, how to increment to the next row of data with pushView?

View 1 Replies

Flex :: Flash - Put A Drop Down List And Date Selector In An Advanced Data Grid?

May 11, 2010

I wish to have a standard row with string items except two items,no 1 there is a date field and I need a date selector for it.no 2 in another cell of the row I want to put a drop down list box containing text "40" and "20" or you can manually edit the cell so that it displays what ever input you decide (other than 40 and 20)

View 1 Replies

Flex :: Spark List : Show Subset Of Data Provider Based On Parameter

Aug 1, 2011

I have a situation where I have a List showing a queue of Upload Objects:

[Code]...

I would like to create three different views of the List: One showing All uploads in the queue Another showing only the Upload items with Upload.type == "Update" and another showing only the items with Upload.type == "Create". Another example of this would be on an email inbox, where we could filter "All, unread, or read". I realise I could just create three different lists, one for each view of the list (maybe I'm just being picky) but I was wondering: Is there is any easy way to conditionally select the items to display from a DataProvider based on a parameter (for example type =="Upload") so I don't have to juggle three separate ArrayCollections about?

View 2 Replies

Flex :: Dragged TitleWindow Within App Boundary?

Mar 7, 2010

I am using PopupManager in FB4 to display a custom dialog.

popwin = new TitleWindow();
popwin.addElement(myCustomDialog);
PopUpManager.addPopUp(popwin,this,false);
PopUpManager.centerPopUp(popwin);

It's possible to drag the popped up TitleWindow and let go of it when its gray title bar lies outside the bounds of the Flex app rectangle,and then the popup cannot be grabbed again.It's also possible to drag the TitleWindow downwards so it becomes completely invisible below the bottom edge of the Flex app rectangle.When the Flex app bounds are less than the full browser window,and the user is working quickly, this chances of this happening increase.Is there a simple setting that will keep this from happening, or must the programmer intercept the behavior during the drag operation?

View 2 Replies

ActionScript 3.0 :: Detecting If Data Are In Correct Form?

Mar 5, 2010

Name, phone, birth date, email.is there a way of detecting if the email is a valid real address?avoiding the user to fill

View 3 Replies

Data Integration :: List Component - Multi-select Retrieve Data

Feb 26, 2007

I'm having trouble retrieving the value of a multi-select list component. It always traces the last value selected, but I need to trace all values to parse the data.

I've been using trace(myList.value);

View 2 Replies

Data Integration :: List Component - Multi-select Retrieve Data?

Nov 18, 2010

I'm having trouble retrieving the value of a multi-selectlist component. It always traces the last value selected, but Ineed to trace all values to parse the data

View 8 Replies

Data Integration :: Instead Of The Vertical List , Get An Unparsed Data Array?

Jul 20, 2006

I have No problems inserting data from flash to PHP into MySQL,it's sendind them back properlly.All I'd like to see happen is for one row of data to be inserted into a dynamic text field. here's what i've got if i access this php file, it prints out a vertical list from
a single MySQL row,I was happy.

$query = "select row from table";
$result = mysql_query($query, $db);

while($row = mysql_fetch_row($result))[code]...

and Instead of the vertical list (which i would love to see)i get an unparsed data array.

View 2 Replies

Data Integration :: Pulling Data From A SharePoint 2007 List?

Apr 23, 2010

I'm wondering if anyone has figured out how to pull data from a column in a SharePoint 2007 list to be able to dyamically generate a reaction in a flash object.Our designer created a dashboard of thermometers for our projects that use two variables, % complete and status (green, yellow, red, blue).

As the end user, I want to be able to update my project in my SharePoint list and have it so that my updates automatically populate that flash based dashboard.Right now, he's using an XML document that is stored in a folder on our SharePoint site and then simply updating the XML file when there are changes.It would be ideal to pull this data from the list rather than having to update and then upload the xml document to the SharePoint site.

View 1 Replies

Flex :: Prevent A Component From Being Dragged Out Of The Stage I?

Oct 16, 2009

I think there is a simple solution to this question, just not simple enough for me to find it.Question:How do you constrain a TitleWindow in Flex 3 from being dragged off the screen/stage? Is there a way to restrict the TitleWindow to the viewing area? Example: Let's say I have an application that take 100% of the screen. Next, I create a TitleWindow via the PopUpManager. I can then proceed to click and hold (drag) that window off the screen, then release the mouse button. That window is now lost off-screen somewhere. Is there a way to keep the window from being dragged beyond the viewing area?

View 6 Replies

Flex :: Prevent Tree Items From Being Dragged Into Themselves?

Jan 14, 2010

I have a flex tree with dragMoveEnabled = true. I want to find out, when an item is dragged into itself or it's children. I'd like to use DragManager.showFeedback(DragManager.NONE) in the tree's onDragOver handler, but can't find out how get this to work. I'm using an ArrayCollection of nested objects as dataSource for the tree.

View 2 Replies

Data Integration :: Connecting XML Data To  A List Component

Jul 6, 2007

I'm using the XML Connector to bind information to a List Component. Everything binds okay but when I run the MC I only get one item of information. The object I'm binding from the XML is called "Location" and there are a total of 5 listed in the XML. The five are Los Angeles, Seattle... The only one being displayed is Los Angeles. What do I need to do get the other 4 locations to display in the list?

View 1 Replies

Flex :: Prevent The Addition Of Dragged Item In Tree Which Drag Accepting?

Oct 25, 2010

i have two tree one tree lets say TreeDrag is drag enabled and other is drop enabled lets say TreeDrop.. when i drag item from TreeDrag to TreeDrop,, i want to show feedback and everything else normal except the addition of dragged item in TreeDrop..

View 1 Replies







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