# Instanced MovieClips in gallery

**URL:** https://forum.kirupa.com/t/instanced-movieclips-in-gallery/184610
**Category:** flash
**Created:** [April 6, 2006, 8:21am UTC](https://forum.kirupa.com/t/instanced-movieclips-in-gallery/184610 "2006-04-06T08:21:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![LBueno](https://avatars.discourse-cdn.com/v4/letter/l/bbe5ce/32.png) [@LBueno](https://forum.kirupa.com/u/LBueno)
#### Post date: [April 6, 2006, 8:21am UTC](https://forum.kirupa.com/t/instanced-movieclips-in-gallery/184610/1 "2006-04-06T08:21:47Z")

</div>

I’d like to do a gallery similar to [http://www.sharkmatic.com/](http://www.sharkmatic.com/) (skip the intro, click on Work, then on Websites)

I made a movieclip that animates the “growing” effect of the thumbnails called mcSmallImg. I would like to just animate one symbol but use it for all thumbnails. I am unable to change the thumbnail to an image without changing all instances of mcSmallImg.

Any idea as to what I’m overlooking? Do I need to make a new symbol for every thumbnail instead of using instances of mcSmallImg?

I have uploaded the flash file. Thanks in advance.

[http://www.aquatichousesa.com/main.fla](http://www.aquatichousesa.com/main.fla)

---

<div class="post-metadata">

### Author: ![stringy](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stringy](https://forum.kirupa.com/u/stringy)
#### Post date: [April 6, 2006, 2:40pm UTC](https://forum.kirupa.com/t/instanced-movieclips-in-gallery/184610/2 "2006-04-06T14:40:18Z")

</div>

> [@LBueno](#):
>
> I’d like to do a gallery similar to [http://www.sharkmatic.com/](http://www.sharkmatic.com/) (skip the intro, click on Work, then on Websites)
> 
> I made a movieclip that animates the “growing” effect of the thumbnails called mcSmallImg. I would like to just animate one symbol but use it for all thumbnails. I am unable to change the thumbnail to an image without changing all instances of mcSmallImg.
> 
> Any idea as to what I’m overlooking? Do I need to make a new symbol for every thumbnail instead of using instances of mcSmallImg?
> 
> I have uploaded the flash file. Thanks in advance.
> 
> [http://www.aquatichousesa.com/main.fla](http://www.aquatichousesa.com/main.fla)

No you don`t need to make a new symbol for each thumbnail - just create an empty movieclip within each.Try this ,see if it gets you closer.Remove the tween/actions + all frames after frame1 on one of the clips.Then move it so that it is a central registration point.Return back to the main timeline and reposition the whole layer containing the clips.Rename the clips mcSmall0,mcSmall1,mcSmall2…etc

in the actions panel

```auto
for (var i = 0; i<20; i++) {
	this["mcSmall"+i].onRollOver = myroll;
	this["mcSmall"+i].onRollOut = myout;
	var clip = this["mcSmall"+i].createEmptyMovieClip("l", 1);
	clip._x = -10;
	clip._y = -10;
	//not ideal to load all together but should give you the idea
	clip.loadMovie("http://www.fmx6.com/t"+Number(i+1)+".jpg");
}
//i have just made bigger/smaller but you can tween this if you want
function myroll() {
	this._xscale = this._yscale=150;
}
function myout() {
	this._xscale = this._yscale=100;
}

```
