# Stopping vibration effect

**URL:** <https://forum.kirupa.com/t/stopping-vibration-effect/70439>\
**Category:** flash\
**Created:** [November 14, 2004, 5:50am UTC](https://forum.kirupa.com/t/stopping-vibration-effect/70439 "2004-11-14T05:50:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cyberious](https://avatars.discourse-cdn.com/v4/letter/c/3ab097/32.png) [@Cyberious](https://forum.kirupa.com/u/Cyberious)\
**Post date:** [November 14, 2004, 5:50am UTC](https://forum.kirupa.com/t/stopping-vibration-effect/70439/1 "2004-11-14T05:50:32Z")

</div>

I am working on a file that emerges with a vibration / random alpha effect, but I don’t want the effect to last forever… I want it to stop.  
Here’s my code, which is placed on the first keyframe (actions) in the timeline:

var vibration = 0;  
var xShift = random(vibration \* 2+1) - vibration;  
var yShift = random(vibration \* 2+1) ± vibration;  
\_root.logoBlurIn.onEnterFrame = function() {  
\_root.logoBlurIn.\_x += xShift;  
\_root.logoBlurIn.\_y += yShift;  
\_root.logoBlurIn.\_alpha = random(100);  
};

After a few moments, I want it to come into focus (end of timeline has a normal image, in focus).

How do I stop this crazy thing??? :sen:
