Hope this helps.
Is there any way to convert a .exe file to a .swf file?
It is not possible due to a number of reasons, including the number of languages a program could have been written in, the inability for SWF to express all of the functionality of most applications, the inability for a SWF file to make use of many of the libraries, APIs, etc. that the executable can, the obfuscation techniques used to prevent EXE decompilation, etc.
-> The program VigneshBalasubramanian suggested can only extract SWF content from an EXE file; it cannot convert any EXE to an SWF file.
Game Maker uses its own scripting language, called GML, which is interpreted by the bundled Game Maker interpreter every time the game is executed. Conversion to SWF is not possible, and may even be prohibited to attempt, depending on the developer's TOS/licensing agreement(s).
Know how to save a wet phone?
It's not with a dryer and it's not with rice. CNET shows you the secret to saving your phone.