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

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support