How do I make a console for flash games with Arduino?

Because I saw that retro games and other games on the internet can be played with arduino and there are projects related to them, and I thought why not in flash games, so for example, if you can convert an audio file into arduino code with other programs and play it with Buzzer, why can't we run a flash file with a .swf extension, and most game consoles such as gameboy have a microcontroller inside.