Line tool similar to mspaint

Hi I am relatively new to as3, I want to make Line tool similar to mspaint, can any body guide me, any help will be really appreciated.