A charged electroscope loses its charge when a flame is brought near its cap because;
The flame blows the charge off the cap
Charges of opposite sign from the flame are attracted onto the cap
Point action takes place at the cap
The flame ionizes nearby air molecules and those of opposite sign are attracted on the cap.