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], "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
>


Reply via email to