Before and after Pictures using a draggable mask AS2.0

Hi all,

I’m having trouble replicating this type of mask:

http://www.abc.net.au/news/infographics/qld-floods/beforeafter2.htm

or

Can anyone point me on the way to some tutorials or just throw a few key words describing such a job for goggle.

thanks
Ollie