How to make this animation with actionscript?

How to make this animation with actionscript so it gets smoother and smaller (in bytes)?

Thanks