Oh gosh, I always wanted to know how these worked! I found an explanation on wikipedia and voila here it is :) Just drag the points around and watch the curve changing - I love it ! Maybe I will make another project that explains how it actually works... Because that is actually pretty cool itself!
All credit to wikipedia for such an excellent explaination: http://en.wikipedia.org/wiki/B%C3%A9zier_curve If you enjoy this, take a look at @MalinC 's project here for something even more amazing: http://scratch.mit.edu/projects/11790017/