Due to Flash Player's end-of-life at the end of 2020, InDesign removed the export to SWF feature. See https://helpx.adobe.com/indesign/using/flash_format_removal.html for more information.
Moving this to the InDesign community forum
Try using InDesign's Publish Online instead.
how can i do that?
Here's a link to an excellent online video tutorial from Linkedin Learning on creating Publish Online documents (you can 30-days free access).
If you know how to create InDesign documents it's easy to produce these documents with Publish Online that can include multimedia content. But they have to be hosted on Adobe servers.