[flash 5] random motion problems

hi.

i’m using the an actionscript for random movement that i found here…

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

but my problem is that i need the object to flip horizontally depending on the direction it is moving… the object that is moving around is a bug, and i need it to face left if it’s moving left or face right if it’s moving right.

any help would be appreciated!

-matt