# Is there a more efficient way?

**URL:** <https://forum.kirupa.com/t/is-there-a-more-efficient-way/43547>\
**Category:** Uncategorized\
**Created:** [February 23, 2004, 11:06pm UTC](https://forum.kirupa.com/t/is-there-a-more-efficient-way/43547 "2004-02-23T23:06:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Artom](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@Artom](https://forum.kirupa.com/u/Artom)\
**Post date:** [February 23, 2004, 11:06pm UTC](https://forum.kirupa.com/t/is-there-a-more-efficient-way/43547/1 "2004-02-23T23:06:58Z")

</div>

Guys i need help with the following effect,

let’s say i have 4 circular icons…on rollover i’d like to zoom in on them, well one at a time, and at the same time i want the other icons to be pushed out of the way (so they’re all visible no matter how big the zoomed in overstate is (or how far apart they are from each other for that matter).

RageW0lf helped me a little bit… basically keeping every one of them at a distance (ActionScript:

if (mysymbol.\_xscale\>100) {  
this.\_x = mysymbol.\_xscale - 100 + 15;  
}

With 5 or so buttons this can get really bulky i mean each of the buttons needs to know if the rolledOver button is on the left or right in order to slide to the right (+x) or left (-x)

Do you guys know a more efficient object oriented way of doing this. Help if you do or have any idea how to go about it ,

Thanks in advance,  
Artom
