# Attach clips from xml, reload xml attach clips again

**URL:** <https://forum.kirupa.com/t/attach-clips-from-xml-reload-xml-attach-clips-again/178435>\
**Category:** Uncategorized\
**Created:** [February 10, 2006, 3:21pm UTC](https://forum.kirupa.com/t/attach-clips-from-xml-reload-xml-attach-clips-again/178435 "2006-02-10T15:21:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)\
**Post date:** [February 10, 2006, 3:21pm UTC](https://forum.kirupa.com/t/attach-clips-from-xml-reload-xml-attach-clips-again/178435/1 "2006-02-10T15:21:43Z")

</div>

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!

```auto
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;

					
					
					
					
				    
				}
			}

}

```
