Hi, I tried to learn how to detect collisions between the ball and the line. Somehow we made it work, but now I do not know how to bounce the ball from the line.

Collision detection - the ball ( "a"), line (from "b" to "c"). You can move every point.
Download the example

It is not a simple hitTest, but "twisted vectors". I learned that from these examples:

http://www.johanvanmol.org/content/view/45/37/1/2/
http://www.tonypa.pri.ee/vectors/tut06.html