You should't have changed it like that since there are no arrays named Nr or Name. If you want to use the first two fields, try it like thisOriginally Posted by Uwe S.
Code:lv = new LoadVars(); lv.onData = function(src){ records = src.split('\n'); for (var i = 1; i < records.length; i++){ fields = records[i].split(';'); records[i] = {label:fields[0], value:fields[1]}; } _root.listbox1.setItems(records); } lv.load('myData.csv'); // load the CSV file




Reply With Quote