CSV file to Array Problem
i have been struggling importing csv file , creating array. able have file display commas in dynamic text box can't figure out how use commas separate data grids.
if can wouldbe appreciated. have 2 weeks complete , have spent countless hours researching solution. thank in advance.
my current code is:
var loader: urlloader = new urlloader();
loader.load(new urlrequest("external.csv"));
loader.addeventlistener(event.complete, oncomplete);
function oncomplete(event:event):void
{
external_txt.text = event.target.data;
}
the comma delimited file "external.csv" , dynamic text field's name "external_txt"
thanks again
you should need use split() method of string class turn csv text array.
More discussions in ActionScript 3
adobe
Comments
Post a Comment