# Random Motion tutorial - Questions

**URL:** <https://forum.kirupa.com/t/random-motion-tutorial-questions/256129>\
**Category:** flash\
**Created:** [March 31, 2008, 3:08am UTC](https://forum.kirupa.com/t/random-motion-tutorial-questions/256129 "2008-03-31T03:08:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lambie](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@lambie](https://forum.kirupa.com/u/lambie)\
**Post date:** [March 31, 2008, 3:08am UTC](https://forum.kirupa.com/t/random-motion-tutorial-questions/256129/1 "2008-03-31T03:08:07Z")

</div>

I am currently reading the following tutorial: [http://www.kirupa.com/developer/actionscript/random\_motion.htm](http://www.kirupa.com/developer/actionscript/random_motion.htm)

And I come across few questions.

1. How can I adjust the boundaries for the moving dots? To be exact, the area I am working with is 600 x 900. And on the height, the top 120 px, I have buttons and such, so I don’t want the dot to move into that area. So far, I tried…  
width = random(900);  
height = random(480)+120;  
However that doesn’t solve the problem…

2. How can I pause the movement of a dot when the mouse is rollover?

Thank you for your help and attention.
