Questions tagged [arraycollection]

The ArrayCollection class is a wrapper class that exposes an Array as a collection in Flex which can be accessed and manipulated. Use this tag for questions related to arraycollection.

The ArrayCollection class is a wrapper class that exposes an Array as a collection that can be accessed and manipulated using the methods and properties of the ICollectionView or IList interfaces. Operations on a ArrayCollection instance modify the data source; for example, if you use the removeItemAt() method on an ArrayCollection, you remove the item from the underlying Array.

Reference

340 questions
0
votes
1 answer

Flex arraycollection sorting not working

I am trying to sort a list of string stored in an arraycollection. But the sorted result is not correct. Please see my code. spark.collections.Sort if(value is ArrayCollection){ var sort:Sort=new Sort(); var…
Saju
  • 402
  • 3
  • 11
  • 30
0
votes
2 answers

In AS3, where do you draw the line between Dictionary and ArrayCollection?

Basically I have been using a Dictionary object in my program that basically took ints as its keys and stored RTMFP peer IDs in the appropriate locations. Each int was unique and represented one user. Now I'm needing to expand on this where users…
0
votes
1 answer

How to get particular items count from arraycollection in flex without a loop

For eg: I have an arraycollection which contains name,standard,age etc. I just want the count of students who were in standard 'x'. How this can be possible in flex ArrayCollection without a loop.
0
votes
1 answer

ArrayCollection issue in flex

I have an array collection into which im adding different model values as below. var ob:Object=new Object(); ob.name=string1; ob.data=model.arraylist1; ob.id=model.arraylist2; nextArrayCollection.addItem(ob); //model.arraylist1 value is changed…
Chinta
  • 275
  • 2
  • 14
0
votes
2 answers

Is there any difference of reset an ArrayCollection by set it's source or change it's reference

I have two ArrayCollection now (a, b) and a is set bindable. I want to reset a with b. The old code in our project is like: a = new ArrayCollection(); for (var i:int = 0; i < b.length; i++) { a.addItem(b.getItemAt(i)); } Then, I think it may…
0
votes
1 answer

using array collection to populate the Tree in Flex

I created an Array Collection that has two layer objects like below, but I get just one layer result. I just see "Countries" result on tree. I set labelField as 'Name' . So what could be my mistake? Countries ---- Turkey - ----…
nadir.shpz
  • 124
  • 1
  • 13
0
votes
2 answers

Flex LineChart - How To Create LineSeries From Unique Values In An ArrayCollection

I have been trying to figure out a way to create a LineChart that contains numerous LineSeries based off data in an ArrayCollection. To be more specific, let's say that we have an ArrayCollection as such: public var myArray:ArrayCollection=new…
anad2312
  • 787
  • 2
  • 8
  • 20
0
votes
1 answer

Symfony2 collection field by_reference=false vs. setter

I have a form with a field for tags. Tags is a Doctrine ArrayCollection on the bound entity. The field is by_reference=false as the doc suggested, but binding the form to the entity behaves illegally while adding new element, like…
Levente Pánczél
  • 1,895
  • 2
  • 14
  • 16
0
votes
1 answer

Casting result.event into an ArrayCollection of Person (Class) in Flex

Im kinda new to the Flex environment and I was wondering how to do this scenario: My initial code goes like this: public function displayAllNames(event:ResultEvent):void { var result:ArrayCollection = new ArrayCollection(); result =…
Israel Sato
  • 199
  • 1
  • 2
  • 12
0
votes
1 answer

How to Push a View Based on a selected Array Collection? (Flash Builder 4.6 , Flex)

I have an application that has an Array Collection of calculator names. Upon selection I would like to push the actual view of the calculator for that item. Here is my code could someone help me write a function that will allow me to do this…
0
votes
3 answers

Multiple arrays, private static function

I have an array list which is connected with a private static function and would like to make another array list on a different view (Flex builder, Action script) so I copied the private static function edited the name and the "Select" parts but I…
0
votes
2 answers

ActionScript: Sorting datagrid and getting data from specific cells programmatically

I have a datagrid in my code that looks like this: I am trying to have a separate label (by default) show the data from…
Tahsin M
  • 129
  • 2
  • 7
0
votes
1 answer

How do you reference an entry immediately after it's been added to a dataGrid

I have a drag-and-drop event form in a flex project. I need to run a validator right after the item is dragged into the dataGrid. In it, I fire off a function through dragDrop="verifyEventUsers()". In the validator, I compare the contents of the…
0
votes
1 answer

Why does my TileList selectedIndex not get updated?

In the code below, the presentedAlbumIndex is used to control the selectedIndex of the TileList. Item "five" is initially selected. Whenever the button is pressed the first item in the array is deleted, and the presentedAlbumIndex is…
Stephen Horvath
  • 5,188
  • 3
  • 24
  • 31
0
votes
1 answer

ArrayCollection children returns null

I have an ArrayCollection with following structure (when viewed in debug mode): [0] - [0] -- src - [1] -- src src is the path to an image. I need to get all of the src's out of the arraycollection. However because of the first (unnamed) node I…
Jozzeh
  • 841
  • 10
  • 28