The best you could do is using nape
http://haxeflixel.com/demos/FlxNape/. Basically, you'd be creating segments when the mouse is down and moving, and they would be tied up together by joints, when you just released. Then, you can draw these lines by using the baloons example :)