Problem with a list component

Does anyone knnows how can i change the contents on a list comonent when i press a buton… a have a list component that is populated from 2 array… and these array are populatet from an xml file… and i want… when i click on a buton to change the contents of the list in fucntion of a type that i chose… ex:
// the arrays
_global.idu = currentLocation.attributes.id;
_global.titles = currentLocation.attributes.title;
_global.tipul = currentLocation.attributes.tip;

//the iff… this i think it needs changes…:slight_smile:
if (tipul == “city”) {
_root.container.menuList.orList.addItem(titles, idu);
}

orList - is the list compoent… and container and menuList are mc…
a need to change the content if the type is the one i want…

hope someone understands me… please HELP…