# \[FMX\] Loading same MC as clicked to placeholder

**URL:** https://forum.kirupa.com/t/fmx-loading-same-mc-as-clicked-to-placeholder/71396
**Category:** flash
**Created:** [November 24, 2004, 2:37pm UTC](https://forum.kirupa.com/t/fmx-loading-same-mc-as-clicked-to-placeholder/71396 "2004-11-24T14:37:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![orangefisk](https://avatars.discourse-cdn.com/v4/letter/o/4491bb/32.png) [@orangefisk](https://forum.kirupa.com/u/orangefisk)
#### Post date: [November 24, 2004, 2:37pm UTC](https://forum.kirupa.com/t/fmx-loading-same-mc-as-clicked-to-placeholder/71396/1 "2004-11-24T14:37:17Z")

</div>

Hello. I’ve been having a small problem loading movieClips into a placeholder. Right now I’m dynamicly creating a thumbnail gallery of images, and I want theese thumbnails to be displayed in full size in a placeholder. I just can’t figure out how to put the selected movieClip into the placeholder.

Here’s the code used for generating the thumbnails:

```auto
 myData = new LoadVars();
// myData.load("getpictues.php") 
	 myData.load(webFolder+"getpictures.txt");
		myData.ref = this;
		myData.onLoad = function(succes){ 
	 if (succes) {
for (var i = 0; i<Number(this.cant); i++) {
this.ref["imgMC"]["holdermain_mc"].duplicateMovieClip("clip_"+i, i);
this.ref["imgMC"]["clip_"+i].createEmptyMovieClip("holder_"+i, i);
this.ref["imgMC"]["clip_"+i]["holder_"+i].loadMovie(iFolder+this["Image"+i]);
this.ref["imgMC"]["clip_"+i]._yscale = T_height + resizeNum;
this.ref["imgMC"]["clip_"+i]._xscale = T_width + resizeNum;
this.ref["imgMC"]["clip_"+i]["holder_"+i]._yscale = T_height - resizeNum;
this.ref["imgMC"]["clip_"+i]["holder_"+i]._xscale = T_width - resizeNum;
if (i != 0) {
	this.ref["clip_"+i]._y = this.ref["clip_"+(i-1)]._y+this.ref["clip_"+(i-1)]._height+offset;
}
 
this.ref["imgMC"]["clip_"+i].onRelease = function() {
//	Put the image in the placeholder called: "_root.bigHolder_mc1"
}; 

```

I really hope you can help. Thank you in advance.

Kevin Andersson
