Everything in this example is made from a single square movieclip. A line or “light” draws out a sphere pixel by pixel making 4 passes up and down before stopping. All animation is programmed and all within 50 lines of code.
Source
https://www.senocular.com/flash/source/?entry=628