Quantcast
Channel: Adobe Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 290743

Saving objects data to txt

$
0
0

Hi

 

I'm populating a datagGrid with external csv data, by loading it, converting it to an object, then loading into the data provider.

 

Would I be better off (and is it possible) to not use csv, but objects instead?

 

So have in a txt file...

 

{id:128, name:"Moi"},{id:156, name:"You"} // my actual objects have about 10 keys each

 

...load the txt file, split it at the commas into an array of objects, and use that as the dataprovider?

 

Or do you have to serialize from dataprovider -> objects -> csv (or xml), then csv -> objects -> dataprovider?

 

I have a feeling AS3 has a max string size it'll load, so maybe that would kill things.

 

Cheers for taking a look.


Viewing all articles
Browse latest Browse all 290743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>