Draw, Drag, then Drop a Line

Perhaps this isn’t possible as I’ve tried what I think is everything and looked everywhere for information…but maybe someone has a solution for the following:

is it possible to perform all four of these functions in one file: to have the user DRAW a straight line (I’ve already written the code for this part) and then DRAG that same line to a new location and still be able to MANIPULATE its length and angle after dropped (I have the code for this part as well), then finally use the CLEAR method to clear the stage (have the code for this)? I haven’t been able to write the code to stitch all four methods together and think maybe there may be a simpler way to go about this!

Thank you very much for any help.