# Make a button shake/vibrate

**URL:** <https://forum.kirupa.com/t/make-a-button-shake-vibrate/201440>\
**Category:** flash\
**Created:** [September 21, 2006, 9:17am UTC](https://forum.kirupa.com/t/make-a-button-shake-vibrate/201440 "2006-09-21T09:17:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mix83](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@mix83](https://forum.kirupa.com/u/mix83)\
**Post date:** [September 21, 2006, 9:17am UTC](https://forum.kirupa.com/t/make-a-button-shake-vibrate/201440/1 "2006-09-21T09:17:22Z")

</div>

Hi  
This must be really mundane for you guys but im trying to create a button that vibrates/shakes when your mouse moves over it. I want to use actionscripting to do this.

Ive tried using

this.\_x = (Math.random()_5)  
this.\_y = (Math.random()_%)

but when i test it the button always jumps to the top right corner.

any help would be helpful
