I'm populating an advanceddatagrid through a http service call. I define a HTTPService in my mxml file like this:
<mx:HTTPService id="srvReadMicroData"/>
It receives this simple "XML file" ...
<MicroDataSet>
<Row arb_id='982215013000269378' />
</MicroDataSet>
... through these functions:
public function readMicroData():void
{
...
srvReadMicroData.url = myUrl;
srvReadMicroData.method = "POST";
srvReadMicroData.addEventListener("result", httpReadMicroDataResult);
srvReadMicroData.send();
}
public function httpReadMicroDataResult(event:ResultEvent):void {
myGrid.dataProvider=srvReadMicroData.lastResult.MicroDataSet.Row;
myGrid.validateNow();
}
When I run debug in Flashbuilder and look at the value of the http service, the last three digits is different. The value changes again when I do a toString(). It seems to happen with large numbers:
srvReadMicroData.lastResult.IseeMicroDataSet.Row["arb_id"] --> 982215013000269440 srvReadMicroData.lastResult.IseeMicroDataSet.Row["arb_id"].toString() --> 982215013000269300
Any ideas on how to solve this?