View Full Version : [AS2] Combobox has values at home, only one on the road

08-15-2008, 05:03 PM
Greetings AS2 forum! I've spent many hours pouring through your pearls of wisdom and this site is clearly the best!

My project loads values from a text file into a combo box. This works nicely when local, but only shows the first value when uploaded to a server. Please help!

Here's the code for loading the values:

var tempArr:Array;
var tempArr2:Array;
var lv = new LoadVars();
lv.onData = function(src:String){
tempArr = src.split("\x0d\x0a");
for (var i = 0; i<tempArr.length; ++i) {
tempArr2 = tempArr[i].split(", ");
mycomboboxinstance.addItem(tempArr2[0], tempArr2[1]);