# Vibration Effect Question

**URL:** <https://forum.kirupa.com/t/vibration-effect-question/281580>\
**Category:** Uncategorized\
**Created:** [February 10, 2009, 10:31pm UTC](https://forum.kirupa.com/t/vibration-effect-question/281580 "2009-02-10T22:31:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dada78](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@dada78](https://forum.kirupa.com/u/dada78)\
**Post date:** [February 10, 2009, 10:31pm UTC](https://forum.kirupa.com/t/vibration-effect-question/281580/1 "2009-02-10T22:31:22Z")

</div>

Hi guys,  
so I am using this code on my symbol:  
onClipEvent (load) {  
height = 150;  
width = 500;  
cx = this.\_x;  
cy = this.\_y;  
}  
onClipEvent (enterFrame) {  
this.\_x = cx+(1+Math.random()\*5);  
this.\_y = cy+(1+Math.random()\*5);  
}

but I would like to apply a tween effect at one point on the timeline, were the mc vibrates but moves out of screen or transitions in scale.

How would I go about this?

Thanks!
