# Random moving and stopping

**URL:** <https://forum.kirupa.com/t/random-moving-and-stopping/232681>\
**Category:** Uncategorized\
**Created:** [July 16, 2007, 9:46pm UTC](https://forum.kirupa.com/t/random-moving-and-stopping/232681 "2007-07-16T21:46:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brockus](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@brockus](https://forum.kirupa.com/u/brockus)\
**Post date:** [July 16, 2007, 9:46pm UTC](https://forum.kirupa.com/t/random-moving-and-stopping/232681/1 "2007-07-16T21:46:06Z")

</div>

I’ve instituted the code for random movement from this tutorial - [http://www.kirupa.com/developer/actionscript/random.htm](http://www.kirupa.com/developer/actionscript/random.htm)

Does any know of away that I can modify this so when the user rolls over one of the movieclips it will stop moving and once the user rolls offs it will resume random movement.

Thanks in advance.
