Random smooth waving line

Hi guys,

I’ve searched the net and I couldn’t find anything on this.

I have this line:

And I want it to randomly wave like if it was a hair in the wind, or like a snake moving, or even like a flame waving.

Is there any way of doing it with actionscript?

Is it also possible to make react to the cursor? When I pass through it with the mouse it moves, like if I just touched it.

Thank you very much