SWF is a popular animated vector format, you can see it in many website. GIF also a popular animated image…