Well, this could be a couple of things. Flashing usually indicates some sort of irritation of either the gills or skin. Ectoparasites, like gill flukes, irritate the gills and the fish will flash on almost any object. Or this can also be a sign of high levels of ammonia/nitrite.
What are the tank parameters? Can you see any swelling or redness in the gills?