Thanks for the quick reply!
I see what you saying.. thanks for that..
My array is sequential tho.. its not a 2d array so records[i][j]
does not work.. I guess I could try one for loop that assigns each
column for one record and then increments i by 8 or something..
I'm thinking that could be t
I understand what your saying.. but I'm not sure how to do that in
actionscript? anyway you can just show me how you would do this part
turn each line into an object with properites (e.g. col1, col2 or
whatever you like
Thanks in advance
--- In flexcoders@yahoogroups.com, "Giles Roadnight" <[EM
, September 20, 2007 2:48 PM
Subject: Re: [flexcoders] Re: Parsing a flat file in flex?
Something liek this:
var records:Array // I'm assuming an array or arrays from your post
var dataProvider:ArrayCollection = new ArrayCollection();
for (var i:int = 0; i < records.l
Thanks for everyones help.. I got it to work
Solution
//Split at newline at the end of each record
results2 = new ArrayCollection(loader.data.split("\n"));
//Start at newest records
for(i = results2.length; i > (results2.length - 200); i--){
//for eac
Hey Gordon,
Thanks for the reply. I got it to work using split like you said.
I'm now stuck trying to put the data in a datagrid. The data is now
in an array but I'm not sure how you reference each element for a
column in the data provider or the data grid.
The data looks something like this
Hey Gordon,
Thanks for the reply. I got it to work using split like you said.
I'm now stuck trying to put the data in a datagrid. The data is now
in an array but I'm not sure how you reference each element for a
column in the data provider or the data grid.
The data looks something like this
Something liek this:
var records:Array // I'm assuming an array or arrays from your post
var dataProvider:ArrayCollection = new ArrayCollection();
for (var i:int = 0; i < records.length; i++)
{
var currentObject:Object = new Object();
for (var j:int = 0; j < records[i].length; i++)
I understand what your saying.. but I'm not sure how to do that in
actionscript? anyway you can just show me how you would do this part
turn each line into an object with properites (e.g. col1, col2 or
whatever you like
Thanks in advance
--- In flexcoders@yahoogroups.com, "Giles Roadnight" <[EM
If you turn each line into an object with properites (e.g. col1, col2 or
whatever you like, somethign more descriptive perhaps) put all these objects
into an ArrayCollection and use this ArrayCollection as the dataprovider for
your grid.
In the datagrid use the property names of the object as the
9 matches
Mail list logo