# Dynamically Affecting items in an array using

**URL:** <https://forum.kirupa.com/t/dynamically-affecting-items-in-an-array-using/163973>\
**Category:** Uncategorized\
**Created:** [September 27, 2005, 6:50pm UTC](https://forum.kirupa.com/t/dynamically-affecting-items-in-an-array-using/163973 "2005-09-27T18:50:12Z")\
**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 27, 2005, 6:50pm UTC](https://forum.kirupa.com/t/dynamically-affecting-items-in-an-array-using/163973/1 "2005-09-27T18:50:12Z")

</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.

heres the code…

```
// 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)

any and all help is appreciated

Thanks in Advance

Ry
