finish cap3 function: Auto setup swf files