# Magnification with falloff

**URL:** <https://forum.kirupa.com/t/magnification-with-falloff/248179>\
**Category:** Uncategorized\
**Created:** [January 4, 2008, 6:01pm UTC](https://forum.kirupa.com/t/magnification-with-falloff/248179 "2008-01-04T18:01:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m\_u\_r](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@m\_u\_r](https://forum.kirupa.com/u/m_u_r)\
**Post date:** [January 4, 2008, 6:01pm UTC](https://forum.kirupa.com/t/magnification-with-falloff/248179/1 "2008-01-04T18:01:34Z")

</div>

I am trying to make an array of thumbnails that is magnified as you rollover them. I’ve got it to array, but it only magnifies in the x or y direction. I think, if I can get this chunk of code to include mousex, it would work:

```auto

		for(i=0;i<_root.numthumbs;i++){
			if(_root["holder"+i]._y > mousey){
				_root["holder"+i].scalefc = mousey / _root["holder"+i]._y;
			}else{
				_root["holder"+i].scalefc = (_root.stageHeight-mousey) / (_root.stageHeight-_root["holder"+i]._y);
			}

```

Please, please help!
