# Bouncing Button

**URL:** <https://forum.kirupa.com/t/bouncing-button/170561>\
**Category:** flash\
**Created:** [November 27, 2005, 4:19pm UTC](https://forum.kirupa.com/t/bouncing-button/170561 "2005-11-27T16:19:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbkons](https://avatars.discourse-cdn.com/v4/letter/j/ecc23a/32.png) [@jbkons](https://forum.kirupa.com/u/jbkons)\
**Post date:** [November 27, 2005, 4:19pm UTC](https://forum.kirupa.com/t/bouncing-button/170561/1 "2005-11-27T16:19:43Z")

</div>

Hi Guys,

I am trying to create a bouncing button effect similar to that of the example I have attached. However, I am having two problems.

The first problem is that when I line the buttons up next to eachother there is an overlapping problem. I think I need to add a getdepth() action or something, and I was wondering if you could show me what I need to add.

The second problem is more of a question. I was wondering if there would be a better way to create an effect like this for a button using actionscript. I have messed around with the mx.transitions effects for a bouncing/elastic effect, but once again I could not get it to function for a simple rollover.

Thanks for your help guys, it is always much appreciated!
