The solution is to *not* make overly huge projects in flash. Especially if you've never made a game before.
You *need* to start small. You'll realize that there's actually a *lot* to game development that you don't know about and even a tiny game will take more time than you estimate.
I know it's exciting to be working on a huge ambitious project, but the odds are, if you haven't finished a game before, you won't be able to finish this one. Or even if you manage to finish it, it won't be as good as it can be due to your lack of experience, and you may not be able to monetize it very well.
You could spend 4 months working on a game only for it to earn $400. Whereas you could make a game in 3 days that could earn $2000. Why? Experience.
So that's my suggestion. Make a super small game to get the hang of publishing and selling your game, and maybe get some money as well. Check out www.fgl.com for selling your game.