Here's another simple, though probably not very professional, way of doing it skyhunter93 . I used this method to shake the entire screen, not just a button, but it should work just as well for anything that needs shaking.
Just repeat the first 3 events as many times as you want to get a shake duration you are happy with and at the end just set the object back to it's inital x,y. You can olso trow in a vibrate event somwhere between the first few lines using cranberrygame 's vibrate plugin if you want.
Hope it helps.