Very Cool Effect possible with actionscript?

Doing some surfing yesterday and found this brilliant flash intro. I really like the way the initial rectangle is spun. Is this do-able in actionscript and if so how would you get that spinning effect?

http://learnflash.com/flashtutorials2.htm