Flash has very good methods for tweening and masking [Click here to see how]. An enhancement is to create masking objects with rotate and change their size and then to add a background colour, such as for blue:
It is then easy to make the background black:
and green:
and red:
and yellow:
and, of course, we can scale it down with:
The mask was created as follows:

The original graphic is:

which comes from a graphic I drew:
