# Shaking

**URL:** <https://forum.kirupa.com/t/shaking/59500>\
**Category:** flash\
**Created:** [August 1, 2004, 11:34am UTC](https://forum.kirupa.com/t/shaking/59500 "2004-08-01T11:34:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Camilus](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@Camilus](https://forum.kirupa.com/u/Camilus)\
**Post date:** [August 1, 2004, 11:34am UTC](https://forum.kirupa.com/t/shaking/59500/1 "2004-08-01T11:34:18Z")

</div>

Hi everyone  
I wish to make a shake effect; namely, I wanna get the picture shaked a bit each 10th second.

Also, I’d like to do the shaking with a button when placing a mouse over it, and then return to normal state when taking a mouse off the button.

Can anyone help me?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 2, 2004, 4:49am UTC](https://forum.kirupa.com/t/shaking/59500/2 "2004-08-02T04:49:58Z")

</div>

Just select your graphic press F8 chose MovieClip and then double click on your movie clip select the 2nd frame right click on it select the option insert keyframe and on the new frame move your graphic to a different plase but close to where it was and repeat the steps 2or 3 more times and inside your MC in the first frame in the actions pannel type stop();  
and on the last frame type  
gotoAndPlay(1);

now on the main frame in your Movie clip  
Type

on(rollOver){  
this.gotoAndPlay(2);  
}  
on(rollOut){  
this.gotoAndPlay(1);  
}

viola 🙂
