wrt to the onboard flash..push the flash down into locked position. if you have a flash mounted in the shoe..turn the flash off. A flash in the hot shoe that is on will always fire.
the flash doesn't switch on unless you pop it up, so aslong as it's down and clipped into place it shouldn't flash; and if it does i'd think about getting someone to have a look at it