How Do I do this?

http://www.kirupa.com/developer/actionscript/mouse.htm
This might help with the lines, The rest should be pretty easy. Load up what you have done so far.