Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: "Tracy Spratt" <[EMAIL PROTECTED]>

Date: Wed, 17 Sep 2008 16:16:06 
To: <flexcoders@yahoogroups.com>
Subject: RE: [flexcoders] Bizarre XML data transformation


As Pete suggests, this is almost always because resultFormat is the
default "object".  Set resultFormat="e4x" and process the result
yourself, either using XML or XMLListCollection directly, or by looping
through the XMLList and building your own ArrayCollection.

 

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Maciek Sakrejda
Sent: Wednesday, September 17, 2008 3:54 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Bizarre XML data transformation

 

Flex sees something that looks like a number in the XML and treats it as
a floating point Number type (since the number in the XML is too big to
fit in an int). Because of the way IEEE floating point works (take a
look if you're interested: http://en.wikipedia.org/wiki/IEEE_754
<http://en.wikipedia.org/wiki/IEEE_754>  -- it's
neat), very large and very small numbers lose precision.

The issue has come up on the list before; you can search the archives
for a workaround (I know the cause, but don't know the solution).
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com <http://www.truviso.com> 

-----Original Message-----
From: cjsutherland <[EMAIL PROTECTED]
<mailto:cjsutherland%40gmail.com> >
Reply-To: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
Subject: [flexcoders] Bizarre XML data transformation
Date: Wed, 17 Sep 2008 19:09:55 -0000

Once again, I've hit a roadblock with Flex for something that should
be easy as pie.

Here's the problem: I'm loading in an XML feed from Flickr, a list of
photoset IDs. There's nothing wrong or unusual about the XML document. 

I load the XML into an ArrayCollection, and can view all the data just
fine, except the ONE element I need... the ID number. Flex is
screwing it up somehow.

For example, the ID number in the XML file looks like this:
72157607109678346

However, when Flex returns the ID number, it becomes: 72157607109678350

Every ID is changed like that, but it's not consistent. The first
one, 4 is added to the ID. In the next, 12 is subtracted. No rhyme
or reason.

What Flex is doing to this number or why it's doing it escapes me. 
I've tried copying the XML file locally and appending the ID with a
character... it then comes across fine. So Flex thinks the ID is some
kind of number datatype, and manipulating it somehow. 

Any idea how to make Flex cut that out?

 


Reply via email to