daveMcNally
01-23-2003, 11:20 AM
hi
i'm trying to populate a combo box list from within a for loop using the addItem method. the data is coming from a sharedobject called data.Saved. i can see the data in the object using trace but the combo will not populate. the Saved object contains and array which contains the previously enterd data.
onClipEvent (load) {
// get data from the object Files
Files = SharedObject.getLocal("Files");
save = Files.data.numberSaved;
trace(save+" "+Files.data.Saved);
for (i=1; i<=save; i++) {
inpu = Files.data.Saved[i];
SaveBox.addItem(inpu);
}
}
i'm trying to populate a combo box list from within a for loop using the addItem method. the data is coming from a sharedobject called data.Saved. i can see the data in the object using trace but the combo will not populate. the Saved object contains and array which contains the previously enterd data.
onClipEvent (load) {
// get data from the object Files
Files = SharedObject.getLocal("Files");
save = Files.data.numberSaved;
trace(save+" "+Files.data.Saved);
for (i=1; i<=save; i++) {
inpu = Files.data.Saved[i];
SaveBox.addItem(inpu);
}
}