M4P (MPEG-4 Protected) is a digital audio file extension for the AAC (Advanced Audio Codec) container format. It uses lossy compression and is an audio-only file. In most cases, M4P files are purchased on Apple iTunes, which means they are DRM-protected. M4A is the unprotected version of M4P.
SWF (Small Web Format/ShockWave Format) is a digital Adobe flash file format that stores vector-based animations, audios, and videos. Generally, it is used to stream media online, mostly browser-based games. Sadly, Adobe recently announced that they are ending Flash format support by the end of 2020 due to its shortcomings such as performance issues and lack of security.
Adobe Flash Player Adobe Flash Professional CC GOM Player Adobe Dreamweaver 2020