Loader class and Array

Hi

I am using loader class for to display images and swf files. But the number of files to be displayed are known as run time (using xml file).
The code snipped id given below

function img():void
{
var imageLoader:Loader= new Loader();
imageLoader.load(“url given”);
var mc:movieClip= new movieClip();

 ///setting movieclip x and y 

mc.addchild(imageLoader);
addchild(mc);

}

function mouseClick()
{
call xmlload() function
}

function xmlload():void
{

If image or video tag is identified call img()
}

Now on click of some image i want that same video and image should be reloaded but that is not happening. The previous instance of movieclip kept on playing. So i decided to store the instance of movieclip in an array and kill the instances before going to the img() but this is not happening.
Can any one please help me this case ???
Any help would be appreciated