how to impress your friends by taking an image snapshot of a flash movie and automatically uploading the jpg to a server in three easy steps

The title for this recipe is a little long, but the use case is straightforward: I want to capture the visual appearance of a movieclip, encode it as a jpg, and then upload it to my server without any user interaction
I came to this problem while writing AsUnit tests for my Flash Actionscript 3 application. [...]

asunit testing with flash cs3 and actionscript 3

Unit tests are supposed to be the first things you write when following an extreme programming or rapid development methodology, but I seldom found the time to bother until recently. On a Flex Data Services project, we needed to interact with a complex and evolving application programing interface. Our coping strategy was to write flexunit [...]