Line Movement Help

Hey, could someone please explain how they did this pencil movement thing:

http://www.thepolyphonicspree.com/main2.html

Is it just a bunch of motion tweening? Or is there some type of actionscript that could do it much easier?