Could i achieve this using action script

Hi guys, I was wanting to know whether it is possible to replicate this flash file (link below) using action script.

By replicate i mean do more or less exactly what this does but perform a little more smoothly. Certainly i shouldnt have to go through all this on the timeline for such small results. The flash file below took me ages to do and im sure via action script it should be much quicker and easier.

http://www.averroesdesign.com/home.fla