Random Movement in Flash MX - need help with bounding area

I followed the random motion tutorial here:

[URL=“http://www.kirupa.com/developer/mx/random_motionMX.htm”]http://www.kirupa.com/developer/mx/random_motionMX.htm

Everything is working fine, but I want it to randomly move everywhere but not go past about an inch from the top. My document is 550w x 400h, and I made that change in the actionscript as it said in the tutorial.

I also tried changing it from 550 x 400 to small numbers to maybe trick it into thinking the document is smaller but to no avail.

I’ve been googling for the last couple of hours, but it always comes up with references to flash game coding tutorials, and I have 0 experience with actionscript 2.0 (i’ve been learning as I’ve been going, through google. I’m making an animated gift as a birthday present.)