# Dynamic mc

**URL:** <https://forum.kirupa.com/t/dynamic-mc/162783>\
**Category:** Uncategorized\
**Created:** [September 16, 2005, 6:55am UTC](https://forum.kirupa.com/t/dynamic-mc/162783 "2005-09-16T06:55:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hippo0](https://avatars.discourse-cdn.com/v4/letter/h/dbc845/32.png) [@hippo0](https://forum.kirupa.com/u/hippo0)\
**Post date:** [September 16, 2005, 6:55am UTC](https://forum.kirupa.com/t/dynamic-mc/162783/1 "2005-09-16T06:55:32Z")

</div>

hey guys help,  
i have this on my code layer:

function loadImages(location,image){  
counter++;  
var loadArea = location.createEmptyMovieClip(“container\_”+counter,counter);  
loadArea.loadMovie(image);  
loadArea.\_x=500;

this.onMouseDown = function () {  
startDrag (loadArea) ;  
}  
this.onMouseUp = function () {  
stopDrag () ;  
}

}

i have this on my button:

on(release){  
this.\_parent.loadImages(this.\_parent,this.\_parent.text1.text);  
}

it works fine, and if i key in hat.jpg, the hat pic will appeared. but when i wanted to load a new pic called shorts.jpg. the shorts pic will replace the hat pic.  
is there any way to modify this code so i can have the hat pic untouched and load a new pic call shorts.jpg.??
