*
The moose likes Flex and the fly likes what should be prefferd  in usage Arrays or ArrayCollection in Flex Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "what should be prefferd  in usage Arrays or ArrayCollection in Flex " Watch "what should be prefferd  in usage Arrays or ArrayCollection in Flex " New topic
Author

what should be prefferd in usage Arrays or ArrayCollection in Flex

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

All the definations i could see is that "The ArrayCollection class is a wrapper class that exposes an Array as a collection"

what should be prefferd Arrays or ArrayCollection in Flex ??and also please tell me when one should be used ??


Thanks in advance .


Save India From Corruption - Anna Hazare.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Whichever suits your purpose. ArrayCollections can be bound, arrays cannot. They also implement interfaces arrays do not. If you read a sentence or so on in the help files from where you got that quote you'll see a link to Using Data Providers and Collections. Have a read of that and you should be able to make a choice.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Paul what you said is absolutely fine .

But my basic query or the question i wanted to ask is that

For example basically we will be going for a HashMap in case of Name Value pairs and HashSet in case of a single value , so are there any such data types related to Flex ??
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Nope.
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you very much .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what should be prefferd in usage Arrays or ArrayCollection in Flex