# \[AS2\] Thumbnails linking to the root

**URL:** <https://forum.kirupa.com/t/as2-thumbnails-linking-to-the-root/283379>\
**Category:** flash\
**Created:** [March 5, 2009, 1:42pm UTC](https://forum.kirupa.com/t/as2-thumbnails-linking-to-the-root/283379 "2009-03-05T13:42:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwmedia](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@kwmedia](https://forum.kirupa.com/u/kwmedia)\
**Post date:** [March 5, 2009, 1:42pm UTC](https://forum.kirupa.com/t/as2-thumbnails-linking-to-the-root/283379/1 "2009-03-05T13:42:52Z")

</div>

Hello! I’m working in a photogallery inside a mc (ex. movie\>menu\>gallery). There are 6 thumbnails in this gallery and I would need this: clicking on a tb i would open the bigger image in a mc in the root with alpha effect (fade in).

I started using this code:

```auto

this.thumb1.onRelease = function() {
	_root.contenitore._alpha = 0;
	_root.contenitore.loadMovie("immagine1.jpg");
			onEnterFrame = function () {
				if (_root.contenitore._alpha<100) {
					_root. contenitore._alpha += 8;
				} else {
					delete this.onEnterFrame;
				}
			}
}

```

The first click works fine but the crossfade between images is impossible because my mc container has set to \_alpha = 0 after the first click.

Any suggestions?
