# Dynamically affecting menu buttons w/ inertia

**URL:** <https://forum.kirupa.com/t/dynamically-affecting-menu-buttons-w-inertia/164142>\
**Category:** Uncategorized\
**Created:** [September 28, 2005, 8:12pm UTC](https://forum.kirupa.com/t/dynamically-affecting-menu-buttons-w-inertia/164142 "2005-09-28T20:12:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spencius](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@spencius](https://forum.kirupa.com/u/spencius)\
**Post date:** [September 28, 2005, 8:12pm UTC](https://forum.kirupa.com/t/dynamically-affecting-menu-buttons-w-inertia/164142/1 "2005-09-28T20:12:31Z")

</div>

Hello…i’ve begun a simple menu button system that scales the X value up on roll-over. On Rollout…it goes back to its original size.

However, I want to shrink the all buttons not being ‘rolled over’ to give it a jelly effect.

basically, when you’re rolling over a button…all the rest should shrink with inertia

heres the code…that i have so far. i’m not that advanced in scripting, so this is as close as i could get.

```
 // When the mouse rolls over this menu option... scale up just a bit.
     myButtons*.onRollOver = function() {
     this.xScaleTo(150,0.5,"easeoutbounce" );
 };
 // When the mouse exits the menu option.. scale back down.
 myButtons*.onRollOut = myButtons*.onReleaseOutside = function() {
     this.xScaleTo(100,0.5,"easeoutbounce" );

```

Here is the link:  
[http://www.planetlucid.com/motiv.html](http://www.planetlucid.com/motiv.html)

and here is what i want it to look like:  
[http://www.underdogentertainment.net/](http://www.underdogentertainment.net/)  
(navigate to any section and note the menu buttons at the top)

any and all help is appreciated

Thanks in Advance

Ry
