views:

32

answers:

2

I am returning 12345678910111213171819 from java to flex, with in xml tags using http serivce. The result format is object.

but when I display the text it automatically converted or treated as number so it displays like 1.234567891011121317181 x e^21 ....

How to avoid this?

Thanks in advance. Regards, Sankara narayanan Ekambaranathan.

A: 

I faced the same problem on one of my projects.

After a lot of googling and investigation I fixed it by changing result format to XML and manually parsing the XML with explicit type conversions.

Another (actually, more correct) way is to define a schema for the response and somehow apply it to the XML decoder but I haven't found an easy way to do it.

vadimbelyaev
+1  A: 

Can't you simply coerce it with String()?

var returnedObject:String = String(123463457695);
PatrickS