Vibrating in an animation

Im real new to actionscript but have some knowledge of flash from webdesign. Im currently doing a project where we need to use flash to make a short motion graphic. I have found and read about vibrating actionscript for single frame things but am wondering if it is the best thing to use for say 10 frames where I want to make an item “vibrate”. I couldnt get the actionscript from the tutorials to work well for this - does anyone have any ideas or code that might be good to put over 10-20 frames and add a vibration?
thanks!