Here is some starter code that may help you:
Code:
// Create a container
var line:MovieClip = this.createEmptyMovieClip("lineContainer_mc", 10000);
// Create mouse listeners
var mouseListener:Object = new Object();
mouseListener.onMouseDown = showLine;
mouseListener.onMouseUp = deleteLine;
Mouse.addListener(mouseListener);
// Called when the user presses the mouse down. Creates the line
function showLine():Void
{
line._x = _xmouse;
line._y = _ymouse;
line._visible = true;
line.createEmptyMovieClip("line_mc", 2);
line.onEnterFrame = drawLine;
}
// Called when the mouse is released. Deletes the line and line drawing event
function deleteLine():Void
{
delete line.onEnterFrame;
line.line_mc.removeMovieClip();
}
// Redraws the line, snapping to the location of the mouse cursor
function drawLine():Void
{
with(line.line_mc)
{
clear();
lineStyle(5, 0x000000); // stroke width, color
moveTo(0, 0);
lineTo(_xmouse, _ymouse);
}
}
PS: Congratulations, this is the first AS2 I had to write this year... I was like a lost coder in a jungle of variables I didn't know!
AS3 forever 
Matt
[Edited on 2/24/2009 by mkeefe]