From IDA's decompiled source, presumably, with manual tweaks to make it compile the same.
Also theres a cool project archiving all Flash and Shockwave games called BlueMaximas Flashpoint. The people working on preserving these old games are amazing.
I do fear the death of some of those awesome NewGrounds games.