# Item that resizes when it reaches coordinate

**URL:** <https://forum.kirupa.com/t/item-that-resizes-when-it-reaches-coordinate/239105>\
**Category:** Uncategorized\
**Created:** [September 18, 2007, 7:28pm UTC](https://forum.kirupa.com/t/item-that-resizes-when-it-reaches-coordinate/239105 "2007-09-18T19:28:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrmike](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@mrmike](https://forum.kirupa.com/u/mrmike)\
**Post date:** [September 18, 2007, 7:28pm UTC](https://forum.kirupa.com/t/item-that-resizes-when-it-reaches-coordinate/239105/1 "2007-09-18T19:28:31Z")

</div>

I’m making a horizontal image scroller, with a bunch of icons inside of movie clips, these movie clips will be moving from side to side. what I want to do is determine a parameter such as an \_x coordinate and when a thumbnail reaches that point it enlarges and scales back down to a normal size once it has past the center point. I want each movie clip to do this however I do not know where to even begin… Could anyone out there help me get in the right direction?

How do I scale an image based on its \_x coordinate. In other words write a script that says, if object’s \_x is = to center Coordinate, enlarge.

Thanks
