# Vibrate effect

**URL:** <https://forum.kirupa.com/t/vibrate-effect/85691>\
**Category:** flash\
**Created:** [April 6, 2005, 5:54pm UTC](https://forum.kirupa.com/t/vibrate-effect/85691 "2005-04-06T17:54:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spaghettibones](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@spaghettibones](https://forum.kirupa.com/u/spaghettibones)\
**Post date:** [April 6, 2005, 5:54pm UTC](https://forum.kirupa.com/t/vibrate-effect/85691/1 "2005-04-06T17:54:36Z")

</div>

I have downloaded a piece of source code from lionbichstudios (which is a great site) and they have a great effeect I was wanting to incorporate but can’t seem to tun off the random scale effect in the source code. here it is can anyone help?

onClipEvent (load) {  
//movie width/height  
height = 200;  
width = 300;  
//------------------------//  
//makes everything random //  
//------------------------//  
this.\_x = Math.round(Math.random()\*width);  
this.\_y = Math.round(Math.random()\*height);  
var temp = this.\_alpha=Math.random()\*100;  
this.\_xscale = this.\_yscale=temp;  
//setting initiaion position [COLOR=Red]\<—It has gotta be here right?[/COLOR]  
cx = this.\_x;  
cy = this.\_y;  
}  
onClipEvent (enterFrame) {  
//causes the object to be offset  
this.\_x = cx+(1+Math.random()\*5);  
this.\_y = cy+(Math.random()\*5);  
}

Thanks!

Spaghettibones
