You can find online many free swf to flv and swf to avi format converters.
You can search with keywords convert swf file to flv or convert swf file to avi. You will find many.
You can however check out Sothink Media converter which has the coversion for various formats.
What I am really looking for is to do this programmatically using Actionscript.