# Random Movement Object problem

**URL:** <https://forum.kirupa.com/t/random-movement-object-problem/154461>\
**Category:** flash\
**Created:** [July 10, 2005, 12:43am UTC](https://forum.kirupa.com/t/random-movement-object-problem/154461 "2005-07-10T00:43:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bananian](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@bananian](https://forum.kirupa.com/u/bananian)\
**Post date:** [July 10, 2005, 12:43am UTC](https://forum.kirupa.com/t/random-movement-object-problem/154461/1 "2005-07-10T00:43:47Z")

</div>

I’ve been try to use the Random Movement code from the Flash MX section but I can’t seem to get it to work right when I put it at the mid-section of my document.

I’ve been trying to tweak the code to adjust how far the objects will move and it works a little but some of the objects will stay stray to the top, I think because it is due to this.diffx and this.diffy.

I also tried putting it in it’s own movie, but when that happens the object doesn’t move anymore. It simply teleports form one position to another and I have no clue how to deal with that either.

Thanks for any help.
