Basically, you have multiple fire.bmp graphics for each gun, like maybe 3-5. The game automatically cycles through them whenever you fire. A real gun won't have the muzzle flash be completley identical every single time, after all. Try playing Thing Thing 3 to get an idea. It's the only flash game I can think of right now that implements the same idea.