Meaning: Something which disappoints by failing to deliver anything of value, despite a showy beginning.
Origin: There’s reason to believe that this phrase derives from the Californian Gold Rush of the mid 19th century. Prospectors who panned for gold supposedly became excited when they saw something glint in the pan, only to have their hopes dashed when it proved not to be gold but a mere ‘flash in the pan.’ This is an attractive and plausible notion, in part because it ties in with another phrase related to disappointment – ‘it didn’t pan out.’ ‘Panning out’ can be traced to US prospectors and was used in that context by the early 20th century.
Nevertheless, gold prospecting isn’t the origin of ‘a flash in the pan.’ The phrase did have a literal meaning, i.e. it derives from a real flash in a real pan, but not a prospector’s pan. Flintlock muskets used to have small pans to hold charges of gunpowder. An attempt to fire the musket in which the gunpowder flared up without a bullet being fired was a ‘flash in the pan.’
Source: http://www.phrases.org.uk