If you leave the resultFormat property at its default, which is "object", Flex converts your XML into a nested structure of dynamic objects. While this can be convenient for creating an ArrayCollection, it is rarely desirable.
The consensus seems to be, especially with many visible itemRenderers, that best overall performance is obtained by receiving the data as e4x, then looping over that to build an ArrayCollection of strongly typed value objects. Search the archives for plenty of discussion. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of LazerWonder Sent: Wednesday, June 11, 2008 12:04 PM To: [email protected] Subject: [flexcoders] Re: HTTPService Bug Wherever you get the returned XML object from... does it pass in a 1 or 2? Or does it pass a "1.0" / "2.0". As far as I know, HTTPService does not transform data (some one more experience can correct me if I am wrong). It just spits back to you what it receives. If you have control over the server side of things (that is, where the HTTPService connects to) you might need to see if 1.0/2.0 is being passed to the XML object.... or maybe only 1 / 2 is being passed to the object. If you have no control over this, then you might need to add the ".0" manually; or if you do have control but Flex still trip the ".0" off, then try adding quotation marks around "1.0" / "2.0" on the server side. You can also do a trace (which I'm sure you already did - but I thought I'll just plug this in here anyways) statement on the returned object, just to see what you get. Happy Coding. :) --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Rafael Faria" <[EMAIL PROTECTED]> wrote: > > Any reason why HTTPService when return my XML as an Object transform > the following array into strings that was suppose to contain strings > > <item key="version"> > <label><![CDATA[Version]]></label> > <type><![CDATA[dropdown]]></type> > <source> > <item key=""><![CDATA[Choose]]></item> > > <item key="2.0"><![CDATA[2.0]]></item> > <item key="1.2"><![CDATA[1.2]]></item> > <item key="1.0"><![CDATA[1.0]]></item> > </source> > <default><![CDATA[Choose]]></default> > <width><![CDATA[100]]></width> > <rules><![CDATA[trim|required]]></rules> > </item> > > I'm populating my combobox with the "source" node. I'm using > HTTPService and the resultFormaat = "object". > > It adds but whenever i have 1.0 or 2.0 flex just assume it's an string > and use "1 or 2" removing the .0. > > there is anyway to tell flex to NOT remove that i want an string and > not an integer? > > raf >

