Kirupas random motion - stop on rollover

hi,

modifying the random motion script in a kirupa tutorial:

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

i would like the random objects to be buttons that pause on mouse rollover. don’t know how to stop a function then start it again with mouse control…

thanks for any help
doug