The Sun as a star: observations of white-light flares