Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6388333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:15:56+00:00 2026-05-25T03:15:56+00:00

What is the role of source for an ArrayCollection or XMLListCollection? Is it used

  • 0

What is the role of source for an ArrayCollection or XMLListCollection?

Is it used just once – when constructing a new ArrayCollection or XMLListCollection object and is it copied to some internal data structure of that object?

Because nothing is updated when the source Array (or XMLList) is being modified and the documentation confirms it too:

The underlying XMLList for this collection. The XMLListCollection object does not represent any changes that you make directly to the source XMLList object. Always use the XMLListCollection methods to modify the collection.

This property can be used as the source for data binding. When this property is modified, it dispatches the listChanged event.

I’m asking because Flex examples related to dataProviders always use some Array or XMLList as source of data for a data-driven component. And I wonder, if using Array or XMLList is necessary at all – when for example loading data from external PHP-script.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:15:56+00:00Added an answer on May 25, 2026 at 3:15 am

    Using collections ArrayCollection or XMLListCollection, you can apply sorting or filter to them. In this case source will return all the elements in original order without applying filter. I often use source this way. Adding and removing items from collection also modifies original source array.

    What about using collections or arrays as data provider, you can use them all in MX lists but Spark lists can only accept IList‘s which implemented by collections mentioned above.

    The advantage of using collections as data provider is in possibility to apply filters and sorting without modifying of original array. And of course possibility to listen collection’s changes.

    Using pure Array or XMLList in samples, I suppose, is for simplicity and some implementation details of particular client-server interaction.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Which role is recommended for an ORACLE user used internally by an desktop or
I have a program which would use the Application Role to write data to
I've already seen some examples, like the one below: (source: javaworld.com ) That's nice
I'm trying to fetch the feeds dynamically from some source and then i wanted
In a Spring Security, I defined a jdbc auth manager: <security:authentication-manager> <security:authentication-provider> <security:jdbc-user-service data-source-ref=securityDataSource/>
Recently I was trying to load a solution source controlled by TFS but some
In my app ive got a non-activity object which it's role is being a
I am working on an Open Source Role Based Access Control Library for PHP
I just started reading The Dragon Book and I'm finding difficulty in understanding some
How much code documentation in your .NET source is too much? Some background: I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.