Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what should be prefferd in usage Arrays or ArrayCollection in Flex

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic