# Random Motion problem

**URL:** <https://forum.kirupa.com/t/random-motion-problem/5607>\
**Category:** flash\
**Created:** [September 17, 2002, 2:04pm UTC](https://forum.kirupa.com/t/random-motion-problem/5607 "2002-09-17T14:04:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cojm3](https://avatars.discourse-cdn.com/v4/letter/c/cdc98d/32.png) [@cojm3](https://forum.kirupa.com/u/cojm3)\
**Post date:** [September 17, 2002, 2:04pm UTC](https://forum.kirupa.com/t/random-motion-problem/5607/1 "2002-09-17T14:04:26Z")

</div>

Hi,

I had a look at your tutorial with regards to the Random Motion. The script works fine but there is one problem that I need to solve. If I create a canvas larger than the movie height and width, the movie will still go back to its original set coordinates in the the left hand corner. How can i set this script so that the movie only plays at a certain part of the canvas. This is quite urgent, so I would appreciate a prompt reply

Thanks

Jaison
