# Vibration effect occuring in all my scenes

**URL:** <https://forum.kirupa.com/t/vibration-effect-occuring-in-all-my-scenes/35707>\
**Category:** Uncategorized\
**Created:** [November 17, 2003, 7:25am UTC](https://forum.kirupa.com/t/vibration-effect-occuring-in-all-my-scenes/35707 "2003-11-17T07:25:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simonney](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@simonney](https://forum.kirupa.com/u/simonney)\
**Post date:** [November 17, 2003, 7:25am UTC](https://forum.kirupa.com/t/vibration-effect-occuring-in-all-my-scenes/35707/1 "2003-11-17T07:25:53Z")

</div>

I’ve included this effect in one particular scene and I want it  
to remain in that scene. Instead it remains there the whole time  
after I click out that scene.

Im also very new at Flash, your help will be very much appreciated.

The code is :

onClipEvent (load) {  
// movie width/height  
height = 400;  
width = 550;  
// ------------------------//  
// 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  
cx = this.\_x;  
cy = this.\_y;  
}  
onClipEvent (enterFrame) {  
// causes the object to be offset  
this.\_x = cx+(1+Math.random()\*5);  
this.\_y = cy+(1+Math.random()\*5);  
}  
onClipEvent (load) {  
}
