Scriptable Mask Tutorial

Hi,

I have just completed the scriptable masking tutorial, which worked really well, (link below)

http://www.kirupa.com/developer/actionscript/scriptable_masks.htm#action

I was just wondering how you could change the script so you can drag the mask in any direction to make it work rather than just left and right.

Any ideas would be welcome!

Thanks
:beer: