moved most of the parameter parsing to swfoutput.cc.