To build your own Flash game, you'll need Adobe Flash software. Unfortunately, it isn't free and can be quite pricey.
The good news is you can grab a roughly 30-day trial with no restrictions. To download it, go to the Adobe website and click the Flash button (not Flash Player), then download from there.
There are also plenty of tutorials online, just search for "Adobe Flash tutorials" to get started.