Groups | Blog | Home
all groups > flash actionscript > june 2004 >

flash actionscript : Listbox not showing labels after array update?


powerofq
6/3/2004 10:21:14 PM
Hello,

I have an array that is being updated remotely, and a listbox that is using
this array as it's datasource. The problem is, once the array is updated, I
can't see any labels in the list box.. however, if I click a row, the data is
there.. just no labels?

Thanks
powerofq
6/3/2004 10:28:31 PM
Ok, this works.. I simply added "another" dataProvider after the update ie:
myListBox.dataProvider = myStatesArray;
It seems there should be a updater function so when you alter an array, it
automatically reflects this in the listbox.
Jeckyl
6/4/2004 8:33:57 AM
How are you altering the array?

Some ways of changing array objects will make a new array, others will
change the array in place (so all references to it stay the same) .. maybe
that is related to your problem (I don't use listboxes and datasources, so I
cannot comment whether there are any particular issues with them).

AddThis Social Bookmark Button