I don't believe it can be done using ActionScript, if you look at the video forum here I think they shoot on a blue/green screen and then knock out the background and then either insert a white background or export transparent PNGs.