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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:54:21+00:00 2026-06-07T10:54:21+00:00

I am venturing development on mobile apps using Flex. I am trying to use

  • 0

I am venturing development on mobile apps using Flex.

I am trying to use HttpService to connect to a url which returns an XML data.

<s:HttpService id="test" url="UrlToConnectTo" />

And in the script:

private function init() :void
{
  test.send();
}

And the lastResult of the service I am binding to a List..

<s:List id="list" top="0" bottom="0" left="0" right="0"
  dataProvider="{test.lastResult.Item.FiscalYear }" 
        labelField="ItemDescription"/>

Are there other alternate means of handling data returned by services? I would like to inspect the data, but I am not sure what type of data it is after being bound to the list (array, arraycollection??).

Side Note:
I can also get the data via JSON, but I am unable to bind the data retrieved properly to the list control.

Appreciate any links / insights provided.

  • 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-06-07T10:54:23+00:00Added an answer on June 7, 2026 at 10:54 am
    Are there other alternate means of handling data returned by services? 
    

    Yes,s, use a result event handler. Conceptually something like this:

    <s:HttpService id="test" url="UrlToConnectTo" result="onResult(event)" />
    

    And your handler method:

    protected function onResult(event:ResultEvent):void{
      trace(event.result);
      // convert XML result to XMLListCollection
      var myCollection : XMLListCollection = new XMLListCollection(event.result as XML);
      // convert array result to ARrayCollection
      var myCollection : ArrayCollection = new ArrayCollection(event.result as Array);
    }
    

    Most likely you’ll want to convert your data from whatever is returned into something more useful in Flex. XML to an XMLList or an Array to an ArrayCollection, as two examples.

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

Sidebar

Related Questions

I'm venturing into making my VB.NET application a little better to use by making
I have recently started venturing into some HP webOS development and I am wondering
I am venturing into the world of setting up cronjobs and trying to learn
So I realize that I am venturing outside of the intended use of a
SQL Server 2008 R2 Express Edition. I'm trying to use the import wizard to
Some background.... We're venturing into Azure for the first time and are trying to
Is it safe to use std::bind to pass a member function to boost::signals2::signal::connect()? In
I am venturing into WPF - first time in (VB).NET - and trying to
I'm venturing out of the world of .NET and into the world of open-source.
I'm venturing into the world of C++ and Linux, and am having problems linking

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.