Random Motion

I enjoy the tutorial at

http://www.kirupa.com/developer/mx/random_motionMX.htm

it’s very cool. I was messing around with the code, but i can’t seem to limit the perimeter that the images are moving. The images are moving beyond the set

// specify the width and height of the movie

width = 300;
height = 200;

is there a code that I can allow for the images not to pass the desired width and height?

If you do not know what i’m talking about, u can click on the link above. Notice how the cones go beyond the width and height that is set.

Thanks for reading and any help is appreciated.