Refactor SWFObject