Random Motion

Hey All,

http://www.kirupa.com/developer/actionscript/random_motion.htm

I was Wondering if there is any code that can flip the image Horizontally when movement travels to the right and of course flip it back when it travels left.

Thanks

vxd