Trigonometry

hey…I need some help with trigonometry in flash mx. I was inspired by this site and was wondering how you do it…go to ‘images’…I dont want to just copy and paste a script you would give me…if you could explain it for me so I could understand AS better I would be very greatful.
The site:http://www.techno-revelation.com/portfolio.html