# Changing an object's size depending on mouse position

**URL:** <https://forum.kirupa.com/t/changing-an-objects-size-depending-on-mouse-position/297631>\
**Category:** Uncategorized\
**Created:** [October 6, 2009, 8:50am UTC](https://forum.kirupa.com/t/changing-an-objects-size-depending-on-mouse-position/297631 "2009-10-06T08:50:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zonferno](https://avatars.discourse-cdn.com/v4/letter/z/ecccb3/32.png) [@zonferno](https://forum.kirupa.com/u/zonferno)\
**Post date:** [October 6, 2009, 8:50am UTC](https://forum.kirupa.com/t/changing-an-objects-size-depending-on-mouse-position/297631/1 "2009-10-06T08:50:03Z")

</div>

Right, I have a button symbol on my stage that I want to change size depending on where the mouse is on stage. ie: the y position of the mouse will make the x and y scale change (the symbol should get smaller as the mouse moves up the page and larger as it moves down - as if it is getting closer or further away).  
Any help appreciated! :rambo:
