# Random motion

**URL:** <https://forum.kirupa.com/t/random-motion/4975>\
**Category:** Uncategorized\
**Created:** [August 27, 2002, 3:22pm UTC](https://forum.kirupa.com/t/random-motion/4975 "2002-08-27T15:22:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wa\_ha\_ha\_ha\_ha](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/wa_ha_ha_ha_ha/32/55_2.png) [@wa\_ha\_ha\_ha\_ha](https://forum.kirupa.com/u/wa_ha_ha_ha_ha)\
**Post date:** [August 27, 2002, 3:22pm UTC](https://forum.kirupa.com/t/random-motion/4975/1 "2002-08-27T15:22:36Z")

</div>

Hi all,  
I am trying to modify one of the “action script tutorials” from Kirupa; it’s called random motion. ([http://www.kirupa.com/developer/actionscript/random.asp](http://www.kirupa.com/developer/actionscript/random.asp))  
I am trying to modify it, so when the user roll over on one of the moving graphics, that particular one will stop, and when the user roll off on it, it will start moving again.  
Anyway, I hope some one knows! Thanks a lot!!!

Wa ha ha ha

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2002, 9:23am UTC](https://forum.kirupa.com/t/random-motion/4975/2 "2002-08-29T09:23:54Z")

</div>

I can’t remember the exact setup of the tutorial, but you should be able to attach an onRollOver() action to the clips (or buttons, whichever they are) and tell it stop stop. That should do what you want.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 29, 2002, 2:51pm UTC](https://forum.kirupa.com/t/random-motion/4975/3 "2002-08-29T14:51:25Z")

</div>

Thanks a lot! However, I have already tried that but it doesn’t seem to work with the “STOP.” I might did it differently. Anyway, I am going to give it another try and see what will happen! Thanks again!!!
