i’m trying to figure out how to reset or refresh clips that are dynamically attached to another clip based on records returned through xml.
basically if the user chooses a different filter for the database query I need to be able to refresh a scrolling list made up of clips which will be different based on the filter.
this is what I have for a function. I try to use “attachEmptyMovieClip” but to no avail. any help would be great!
getAll=function(){
members = getMembers.firstChild.childNodes;
for (var i=0; i<members.length; i++) {
holder.createEmptyMovieClip("new_mc", 10);
item = holder.new_mc.attachMovie("listClip", "listClip" + i, i);
item._y = 23*i;
item.index = i;
trace(item.index);
item.memberName = members*.attributes.last+", "+members*.attributes.first;
item.first= members*.attributes.first;
item.last= members*.attributes.last;
item.listButton.tabEnabled=false;
item.listButton.onRelease=function(){
_root.triggeredClick="detail";
_root.selectedFirst= members[this._parent.index].attributes.first;
_root.selectedLast= members[this._parent.index].attributes.last;
_root.getDetails();
_root.firstLoad=false;
}
}
}