How to draw this in flash? Please suggest

Hi,

I have an X and Y axes and I am trying to give the user the interactive option of drawing a line with either a posive slope or a negative slope within the axes to just show the relationship between x variable and Y variable. How can this line be drawn dynamically?

Please help out.
Thanks in advance.