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 815375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:40:24+00:00 2026-05-15T01:40:24+00:00

i asked this question before but haven’t been able to get an answer.. i

  • 0

i asked this question before but haven’t been able to get an answer.. i get the following error when i retrieve an XML that only has 1 node (no repeating nodes) from a PHP page and i try to store in an ArrayCollection. -When I have MORE than 1 “name” nodes…i do NOT get an error.

TypeError: Error #1034: Type Coercion failed: cannot convert "XXXXXX" to mx.collections.ArrayCollection.

this error occurs as the line of code:

myList= e.result.list.name;

I’m using this ArrayCollection as a dataprovider for a Component -is there an alternative I can use that will take BOTH single and repeating nodes as well as work as a dataprovider? Thanks in advance!

code:

[Bindable]
private var myList:ArrayCollection= new ArrayCollection();

    private function getList(e:Event):void{

        var getStudyLoungesService:HTTPService = new HTTPService();
        getStuffService.url = "website.com/asdf.php";
        getStuffService.addEventListener(ResultEvent.RESULT, onGetList);
        getStuffService.send();

    }

    private function onGetList(e:ResultEvent):void{

        myList= e.result.list.name;
    }
  • 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-15T01:40:25+00:00Added an answer on May 15, 2026 at 1:40 am

    XMLListCollection

    http://livedocs.adobe.com/flex/3/langref/mx/collections/XMLListCollection.html

    Try something like this (This is in Psuedo code):

    [Bindable]
    private var myList:XMLListCollection= new XMLListCollection();

    private function getList(e:Event):void{
    
        var getStudyLoungesService:HTTPService = new HTTPService();
        getStuffService.url = "website.com/asdf.php";
        getStuffService.addEventListener(ResultEvent.RESULT, onGetList);
        getStuffService.send();
    
    }
    
    private function onGetList(e:ResultEvent):void{
        var results : XML = e.result as XML;
        myList.source = results;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question has been asked before ( link ) but I have slightly different
I know this question has been asked before, but I ran into a problem.
I know this question has been asked a bit before. But looking around I
This has been asked before (question no. 308581) , but that particular question and
I know this specific question has been asked before , but I am not
It's quite possible a question like this has been asked before, but I can't
I know questions of this kind have been asked before, but my situation differs
I asked this question before, Here however I think I presented the problem poorly,
(I asked this question in another way , and got some interesting responses but
I asked this question a while back but now I'm looking to implement an

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.