4 Replies Latest reply on Jul 1, 2008 10:58 AM by ntsiii

    Need help displaying an attribute from an HTTPService


      I'm new to the Flex world and I'm trying to use an XML data feed to populate a comboBox with an attribute.
      I've searched a few hours for a solution for my problem with no results. So I turn to my fellow developers for some insight! Here is my code so far:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" initialize="initializeHandler(event)" xmlns="*">


      import mx.rpc.http.HTTPService;
      private function initializeHandler(event:Event):void {


      <mx:HTTPService id="places" url=" http://www.callingcards.com/export/export_countries.asp" />
      <mx:Panel x="10" y="10" width="250" height="200" layout="absolute" id="main" title="Search for A Calling Card">
      <mx:ComboBox x="10" y="10" dataProvider="{places.lastResult.Countries.Origination.Country.@Description}" />
      <mx:ComboBox x="10" y="39" dataProvider="" />
      <mx:Button x="105" y="79" label="Search"/>


      I believe that I'm using the correct syntax to get the attribute from the HTTPService in the first comboBox but I don't have a clue as to why it's not working. Any help would be kindly appreciated!